Character recognition on a computing device

ABSTRACT

In some embodiments, a device performs character recognition based on spatial and temporal components of touch input detected on a touch-sensitive surface. In some embodiments, a device provides feedback about handwritten input and its recognition by the device. In some embodiments, a device presents a user interface for changing previously-inputted characters.

CROSS REFERENCE TO RELATED APPLICATIONS

This Application is a continuation of U.S. application Ser. No.16/036,810 (now U.S. Publication No. 2019/0012072) filed Jul. 16, 2018,which is a continuation of U.S. application Ser. No. 15/833,618 (nowU.S. Pat. No. 10,025,499 issued Jul. 17, 2018) filed Dec. 6, 2017, whichis a continuation of U.S. application Ser. No. 14/746,662 (now U.S. Pat.No. 9,864,508 issued Jan. 9, 2018), filed on Jun. 22, 2015, and isrelated to U.S. application Ser. No. 14/746,620 (now U.S. Pat. No.9,864,508 issued Jan. 9, 2018) filed on Jun. 22, 2015, both of whichclaim the benefit of U.S. Provisional Application No. 62/016,597 filedon Jun. 24, 2014, the entire disclosures of which are incorporatedherein by reference for all purposes.

FIELD OF THE DISCLOSURE

This relates generally to electronic devices that are capable ofrecognizing handwritten input provided to the devices.

BACKGROUND OF THE DISCLOSURE

User interaction with devices such as computers and other electroniccomputing devices has increased significantly in recent years. Thesedevices can be devices such as computers, tablet computers, televisions,multimedia devices, and the like.

Interaction with these devices can be performed using various inputdevices, such as touch screen displays, touch-sensitive surfaces, remotecontrols, mice and other input devices. Touch-sensitive surfaces andtouch screen displays, in particular, have become increasingly popularinput devices, as has providing handwritten input using such inputdevices. Providing for robust character recognition of handwritten inputenhances the user's experience with the device by reducing errors incharacter input and decreases user interaction time, which isparticularly important where input devices are battery-operated.

SUMMARY OF THE DISCLOSURE

The embodiments described in this disclosure are directed to one or moredevices that optionally perform character recognition, provide feedbackrelating to handwritten input, and present a user interface for changingpreviously-inputted characters, and one or more actions that the devicesoptionally perform that are related to the above. The full descriptionsof the embodiments are provided in the Drawings and the DetailedDescription, and it is understood that the Summary provided above doesnot limit the scope of the disclosure in any way.

BRIEF DESCRIPTION OF THE DRAWINGS

For a better understanding of the various described embodiments,reference should be made to the Detailed Description below, inconjunction with the following drawings in which like reference numeralsrefer to corresponding parts throughout the figures.

FIG. 1A is a block diagram illustrating a multifunction device with atouch-sensitive display in accordance with some embodiments.

FIG. 1B is a block diagram illustrating exemplary components for eventhandling in accordance with some embodiments.

FIG. 2 illustrates a multifunction device having a touch screen inaccordance with some embodiments.

FIG. 3 is a block diagram of an exemplary multifunction device with adisplay and a touch-sensitive surface in accordance with someembodiments.

FIG. 4 illustrates an exemplary user interface for a multifunctiondevice with a touch-sensitive surface that is separate from the displayin accordance with some embodiments.

FIG. 5 illustrates a block diagram of an exemplary architecture for thedevice according to some embodiments of the disclosure.

FIGS. 6A-6D illustrate exemplary ways in which handwritten characterinput to a device is recognized in accordance with some embodiments ofthe disclosure.

FIGS. 7A-7D are flow diagrams illustrating a method of recognizinghandwritten input in accordance with some embodiments.

FIGS. 8A-8E illustrate exemplary ways in which feedback for handwritteninput is presented in a user interface in accordance with someembodiments of the disclosure.

FIGS. 9A-9D are flow diagrams illustrating a method of presentingfeedback for handwritten input in accordance with some embodiments.

FIGS. 10A-10K illustrate exemplary ways in which an electronic devicepresents a handwritten input correction user interface in accordancewith some embodiments of the disclosure.

FIGS. 11A-11D are flow diagrams illustrating a method of presenting ahandwritten input correction user interface in accordance with someembodiments.

FIGS. 12-14 are functional block diagrams of electronic devices inaccordance with some embodiments.

DETAILED DESCRIPTION

In the following description of embodiments, reference is made to theaccompanying drawings which form a part hereof, and in which it is shownby way of illustration specific embodiments that are optionallypracticed. It is to be understood that other embodiments are optionallyused and structural changes are optionally made without departing fromthe scope of the disclosed embodiments.

Exemplary Devices

Embodiments of electronic devices, user interfaces for such devices, andassociated processes for using such devices are described. In someembodiments, the device is a portable communications device, such as amobile telephone, that also contains other functions, such as PDA and/ormusic player functions. Exemplary embodiments of portable multifunctiondevices include, without limitation, the iPhone®, iPod Touch®, and iPad®devices from Apple Inc. of Cupertino, Calif. Other portable electronicdevices, such as laptops or tablet computers with touch-sensitivesurfaces (e.g., touch screen displays and/or touch pads), are,optionally, used. It should also be understood that, in someembodiments, the device is not a portable communications device, but isa desktop computer or a television with a touch-sensitive surface (e.g.,a touch screen display and/or a touch pad). In some embodiments, thedevice does not have a touch screen display and/or a touch pad, butrather is capable of outputting display information (such as the userinterfaces of the disclosure) for display on a separate display device,and capable of receiving input information from a separate input devicehaving one or more input mechanisms (such as one or more buttons, atouch screen display and/or a touch pad). In some embodiments, thedevice has a display, but is capable of receiving input information froma separate input device having one or more input mechanisms (such as oneor more buttons, a touch screen display and/or a touch pad).

In the discussion that follows, an electronic device that includes adisplay and a touch-sensitive surface is described. It should beunderstood, however, that the electronic device optionally includes oneor more other physical user-interface devices, such as a physicalkeyboard, a mouse and/or a joystick. Further, as described above, itshould be understood that the described electronic device, display andtouch-sensitive surface are optionally distributed amongst two or moredevices. Therefore, as used in this disclosure, information displayed onthe electronic device or by the electronic device is optionally used todescribe information outputted by the electronic device for display on aseparate display device (touch-sensitive or not). Similarly, as used inthis disclosure, input received on the electronic device (e.g., touchinput received on a touch-sensitive surface of the electronic device) isoptionally used to describe input received on a separate input device,from which the electronic device receives input information.

The device typically supports a variety of applications, such as one ormore of the following: a drawing application, a presentationapplication, a word processing application, a website creationapplication, a disk authoring application, a spreadsheet application, agaming application, a telephone application, a video conferencingapplication, an e-mail application, an instant messaging application, aworkout support application, a photo management application, a digitalcamera application, a digital video camera application, a web browsingapplication, a digital music player application, a television channelbrowsing application, and/or a digital video player application.

The various applications that are executed on the device optionally useat least one common physical user-interface device, such as thetouch-sensitive surface. One or more functions of the touch-sensitivesurface as well as corresponding information displayed on the deviceare, optionally, adjusted and/or varied from one application to the nextand/or within a respective application. In this way, a common physicalarchitecture (such as the touch-sensitive surface) of the deviceoptionally supports the variety of applications with user interfacesthat are intuitive and transparent to the user.

Attention is now directed toward embodiments of portable or non-portabledevices with touch-sensitive displays, though the devices need notinclude touch-sensitive displays or displays in general, as describedabove. FIG. 1A is a block diagram illustrating portable or non-portablemultifunction device 100 with touch-sensitive displays 112 in accordancewith some embodiments. Touch-sensitive display 112 is sometimes called a“touch screen” for convenience, and is sometimes known as or called atouch-sensitive display system. Device 100 includes memory 102 (whichoptionally includes one or more computer readable storage mediums),memory controller 122, one or more processing units (CPU's) 120,peripherals interface 118, RF circuitry 108, audio circuitry 110,speaker 111, microphone 113, input/output (I/O) subsystem 106, otherinput or control devices 116, and external port 124. Device 100optionally includes one or more optical sensors 164. Device 100optionally includes one or more intensity sensors 165 for detectingintensity of contacts on device 100 (e.g., a touch-sensitive surfacesuch as touch-sensitive display system 112 of device 100). Device 100optionally includes one or more tactile output generators 167 forgenerating tactile outputs on device 100 (e.g., generating tactileoutputs on a touch-sensitive surface such as touch-sensitive displaysystem 112 of device 100 or touchpad 355 of device 300). Thesecomponents optionally communicate over one or more communication busesor signal lines 103.

As used in the specification and claims, the term “intensity” of acontact on a touch-sensitive surface refers to the force or pressure(force per unit area) of a contact (e.g., a finger contact) on thetouch-sensitive surface, or to a substitute (proxy) for the force orpressure of a contact on the touch-sensitive surface. The intensity of acontact has a range of values that includes at least four distinctvalues and more typically includes hundreds of distinct values (e.g., atleast 256). Intensity of a contact is, optionally, determined (ormeasured) using various approaches and various sensors or combinationsof sensors. For example, one or more force sensors underneath oradjacent to the touch-sensitive surface are, optionally, used to measureforce at various points on the touch-sensitive surface. In someimplementations, force measurements from multiple force sensors arecombined (e.g., a weighted average) to determine an estimated force of acontact. Similarly, a pressure-sensitive tip of a stylus is, optionally,used to determine a pressure of the stylus on the touch-sensitivesurface. Alternatively, the size of the contact area detected on thetouch-sensitive surface and/or changes thereto, the capacitance of thetouch-sensitive surface proximate to the contact and/or changes thereto,and/or the resistance of the touch-sensitive surface proximate to thecontact and/or changes thereto are, optionally, used as a substitute forthe force or pressure of the contact on the touch-sensitive surface. Insome implementations, the substitute measurements for contact force orpressure are used directly to determine whether an intensity thresholdhas been exceeded (e.g., the intensity threshold is described in unitscorresponding to the substitute measurements). In some implementations,the substitute measurements for contact force or pressure are convertedto an estimated force or pressure and the estimated force or pressure isused to determine whether an intensity threshold has been exceeded(e.g., the intensity threshold is a pressure threshold measured in unitsof pressure).

As used in the specification and claims, the term “tactile output”refers to physical displacement of a device relative to a previousposition of the device, physical displacement of a component (e.g., atouch-sensitive surface) of a device relative to another component(e.g., housing) of the device, or displacement of the component relativeto a center of mass of the device that will be detected by a user withthe user's sense of touch. For example, in situations where the deviceor the component of the device is in contact with a surface of a userthat is sensitive to touch (e.g., a finger, palm, or other part of auser's hand), the tactile output generated by the physical displacementwill be interpreted by the user as a tactile sensation corresponding toa perceived change in physical characteristics of the device or thecomponent of the device. For example, movement of a touch-sensitivesurface (e.g., a touch-sensitive display or trackpad) is, optionally,interpreted by the user as a “down click” or “up click” of a physicalactuator button. In some cases, a user will feel a tactile sensationsuch as an “down click” or “up click” even when there is no movement ofa physical actuator button associated with the touch-sensitive surfacethat is physically pressed (e.g., displaced) by the user's movements. Asanother example, movement of the touch-sensitive surface is, optionally,interpreted or sensed by the user as “roughness” of the touch-sensitivesurface, even when there is no change in smoothness of thetouch-sensitive surface. While such interpretations of touch by a userwill be subject to the individualized sensory perceptions of the user,there are many sensory perceptions of touch that are common to a largemajority of users. Thus, when a tactile output is described ascorresponding to a particular sensory perception of a user (e.g., an “upclick,” a “down click,” “roughness”), unless otherwise stated, thegenerated tactile output corresponds to physical displacement of thedevice or a component thereof that will generate the described sensoryperception for a typical (or average) user.

It should be appreciated that device 100 is only one example of aportable or non-portable multifunction device, and that device 100optionally has more or fewer components than shown, optionally combinestwo or more components, or optionally has a different configuration orarrangement of the components. The various components shown in FIG. 1Aare implemented in hardware, software, or a combination of both hardwareand software, including one or more signal processing and/or applicationspecific integrated circuits. Further, the various components shown inFIG. 1A are optionally implemented across two or more devices; forexample, a display and audio circuitry on a display device, atouch-sensitive surface on an input device, and remaining components ondevice 100. In such an embodiment, device 100 optionally communicateswith the display device and/or the input device to facilitate operationof the system, as described in the disclosure, and the variouscomponents described herein that relate to display and/or input remainin device 100, or are optionally included in the display and/or inputdevice, as appropriate.

Memory 102 optionally includes high-speed random access memory andoptionally also includes non-volatile memory, such as one or moremagnetic disk storage devices, flash memory devices, or othernon-volatile solid-state memory devices. Access to memory 102 by othercomponents of device 100, such as CPU 120 and the peripherals interface118, is, optionally, controlled by memory controller 122.

Peripherals interface 118 can be used to couple input and outputperipherals of the device to CPU 120 and memory 102. The one or moreprocessors 120 run or execute various software programs and/or sets ofinstructions stored in memory 102 to perform various functions fordevice 100 and to process data.

In some embodiments, peripherals interface 118, CPU 120, and memorycontroller 122 are, optionally, implemented on a single chip, such aschip 104. In some other embodiments, they are, optionally, implementedon separate chips.

RF (radio frequency) circuitry 108 receives and sends RF signals, alsocalled electromagnetic signals. RF circuitry 108 converts electricalsignals to/from electromagnetic signals and communicates withcommunications networks and other communications devices via theelectromagnetic signals. RF circuitry 108 optionally includes well-knowncircuitry for performing these functions, including but not limited toan antenna system, an RF transceiver, one or more amplifiers, a tuner,one or more oscillators, a digital signal processor, a CODEC chipset, asubscriber identity module (SIM) card, memory, and so forth. RFcircuitry 108 optionally communicates with networks, such as theInternet, also referred to as the World Wide Web (WWW), an intranetand/or a wireless network, such as a cellular telephone network, awireless local area network (LAN) and/or a metropolitan area network(MAN), and other devices by wireless communication. The wirelesscommunication optionally uses any of a plurality of communicationsstandards, protocols and technologies, including but not limited toGlobal System for Mobile Communications (GSM), Enhanced Data GSMEnvironment (EDGE), high-speed downlink packet access (HSDPA),high-speed uplink packet access (HSDPA), Evolution, Data-Only (EV-DO),HSPA, HSPA+, Dual-Cell HSPA (DC-HSPDA), long term evolution (LTE), nearfield communication (NFC), wideband code division multiple access(W-CDMA), code division multiple access (CDMA), time division multipleaccess (TDMA), Bluetooth, Wireless Fidelity (Wi-Fi) (e.g., IEEE 802.11a,IEEE 802.11b, IEEE 802.11g and/or IEEE 802.11n), voice over InternetProtocol (VoIP), Wi-MAX, a protocol for e-mail (e.g., Internet messageaccess protocol (IMAP) and/or post office protocol (POP)), instantmessaging (e.g., extensible messaging and presence protocol (XMPP),Session Initiation Protocol for Instant Messaging and PresenceLeveraging Extensions (SIMPLE), Instant Messaging and Presence Service(IMPS)), and/or Short Message Service (SMS), or any other suitablecommunication protocol, including communication protocols not yetdeveloped as of the filing date of this document.

Audio circuitry 110, speaker 111, and microphone 113 provide an audiointerface between a user and device 100. Audio circuitry 110 receivesaudio data from peripherals interface 118, converts the audio data to anelectrical signal, and transmits the electrical signal to speaker 111.Speaker 111 converts the electrical signal to human-audible sound waves.Audio circuitry 110 also receives electrical signals converted bymicrophone 113 from sound waves. Audio circuitry 110 converts theelectrical signal to audio data and transmits the audio data toperipherals interface 118 for processing. Audio data is, optionally,retrieved from and/or transmitted to memory 102 and/or RF circuitry 108by peripherals interface 118. In some embodiments, audio circuitry 110also includes a headset jack (e.g., 212, FIG. 2). The headset jackprovides an interface between audio circuitry 110 and removable audioinput/output peripherals, such as output-only headphones or a headsetwith both output (e.g., a headphone for one or both ears) and input(e.g., a microphone).

I/O subsystem 106 couples input/output peripherals on device 100, suchas touch screen 112 and other input control devices 116, to peripheralsinterface 118. I/O subsystem 106 optionally includes display controller156, optical sensor controller 158, intensity sensor controller 159,haptic feedback controller 161 and one or more input controllers 160 forother input or control devices. The one or more input controllers 160receive/send electrical signals from/to other input or control devices116. The other input control devices 116 optionally include physicalbuttons (e.g., push buttons, rocker buttons, etc.), dials, sliderswitches, joysticks, click wheels, and so forth. In some alternateembodiments, input controller(s) 160 are, optionally, coupled to any (ornone) of the following: a keyboard, infrared port, USB port, and apointer device such as a mouse. The one or more buttons (e.g., 208, FIG.2) optionally include an up/down button for volume control of speaker111 and/or microphone 113. The one or more buttons optionally include apush button (e.g., 206, FIG. 2).

Touch-sensitive display 112 provides an input interface and an outputinterface between the device and a user. As described above, thetouch-sensitive operation and the display operation of touch-sensitivedisplay 112 are optionally separated from each other, such that adisplay device is used for display purposes and a touch-sensitivesurface (whether display or not) is used for input detection purposes,and the described components and functions are modified accordingly.However, for simplicity, the following description is provided withreference to a touch-sensitive display. Display controller 156 receivesand/or sends electrical signals from/to touch screen 112. Touch screen112 displays visual output to the user. The visual output optionallyincludes graphics, text, icons, video, and any combination thereof(collectively termed “graphics”). In some embodiments, some or all ofthe visual output corresponds to user-interface objects.

Touch screen 112 has a touch-sensitive surface, sensor or set of sensorsthat accepts input from the user based on haptic and/or tactile contact.Touch screen 112 and display controller 156 (along with any associatedmodules and/or sets of instructions in memory 102) detect contact (andany movement or breaking of the contact) on touch screen 112 andconverts the detected contact into interaction with user-interfaceobjects (e.g., one or more soft keys, icons, web pages or images) thatare displayed on touch screen 112. In an exemplary embodiment, a pointof contact between touch screen 112 and the user corresponds to a fingerof the user.

Touch screen 112 optionally uses LCD (liquid crystal display)technology, LPD (light emitting polymer display) technology, or LED(light emitting diode) technology, although other display technologiesare used in other embodiments. Touch screen 112 and display controller156 optionally detect contact and any movement or breaking thereof usingany of a plurality of touch sensing technologies now known or laterdeveloped, including but not limited to capacitive, resistive, infrared,and surface acoustic wave technologies, as well as other proximitysensor arrays or other elements for determining one or more points ofcontact with touch screen 112. In an exemplary embodiment, projectedmutual capacitance sensing technology is used, such as that found in theiPhone®, iPod Touch®, and iPad® from Apple Inc. of Cupertino, Calif.

Touch screen 112 optionally has a video resolution in excess of 100 dpi.In some embodiments, the touch screen has a video resolution ofapproximately 160 dpi. The user optionally makes contact with touchscreen 112 using any suitable object or appendage, such as a stylus, afinger, and so forth. In some embodiments, the user interface isdesigned to work primarily with finger-based contacts and gestures,which can be less precise than stylus-based input due to the larger areaof contact of a finger on the touch screen. In some embodiments, thedevice translates the rough finger-based input into a precisepointer/cursor position or command for performing the actions desired bythe user.

In some embodiments, in addition to the touch screen, device 100optionally includes a touchpad (not shown) for activating ordeactivating particular functions. In some embodiments, the touchpad isa touch-sensitive area of the device that, unlike the touch screen, doesnot display visual output. The touchpad is, optionally, atouch-sensitive surface that is separate from touch screen 112 or anextension of the touch-sensitive surface formed by the touch screen.

Device 100 also includes power system 162 for powering the variouscomponents. Power system 162 optionally includes a power managementsystem, one or more power sources (e.g., battery, alternating current(AC)), a recharging system, a power failure detection circuit, a powerconverter or inverter, a power status indicator (e.g., a light-emittingdiode (LED)) and any other components associated with the generation,management and distribution of power in portable or non-portabledevices.

Device 100 optionally also includes one or more optical sensors 164.FIG. 1A shows an optical sensor coupled to optical sensor controller 158in I/O subsystem 106. Optical sensor 164 optionally includescharge-coupled device (CCD) or complementary metal-oxide semiconductor(CMOS) phototransistors. Optical sensor 164 receives light from theenvironment, projected through one or more lens, and converts the lightto data representing an image. In conjunction with imaging module 143(also called a camera module), optical sensor 164 optionally capturesstill images or video. In some embodiments, an optical sensor is locatedon the back of device 100, opposite touch screen display 112 on thefront of the device, so that the touch screen display is enabled for useas a viewfinder for still and/or video image acquisition. In someembodiments, another optical sensor is located on the front of thedevice so that the user's image is, optionally, obtained forvideoconferencing while the user views the other video conferenceparticipants on the touch screen display.

Device 100 optionally also includes one or more contact intensitysensors 165. FIG. 1A shows a contact intensity sensor coupled tointensity sensor controller 159 in I/O subsystem 106. Contact intensitysensor 165 optionally includes one or more piezoresistive strain gauges,capacitive force sensors, electric force sensors, piezoelectric forcesensors, optical force sensors, capacitive touch-sensitive surfaces, orother intensity sensors (e.g., sensors used to measure the force (orpressure) of a contact on a touch-sensitive surface). Contact intensitysensor 165 receives contact intensity information (e.g., pressureinformation or a proxy for pressure information) from the environment.In some embodiments, at least one contact intensity sensor is collocatedwith, or proximate to, a touch-sensitive surface (e.g., touch-sensitivedisplay system 112). In some embodiments, at least one contact intensitysensor is located on the back of device 100, opposite touch screendisplay 112 which is located on the front of device 100.

Device 100 optionally also includes one or more proximity sensors 166.FIG. 1A shows proximity sensor 166 coupled to peripherals interface 118.Alternately, proximity sensor 166 is coupled to input controller 160 inI/O subsystem 106. In some embodiments, the proximity sensor turns offand disables touch screen 112 when the multifunction device is placednear the user's ear (e.g., when the user is making a phone call).

Device 100 optionally also includes one or more tactile outputgenerators 167. FIG. 1A shows a tactile output generator coupled tohaptic feedback controller 161 in I/O subsystem 106. Tactile outputgenerator 167 optionally includes one or more electroacoustic devicessuch as speakers or other audio components and/or electromechanicaldevices that convert energy into linear motion such as a motor,solenoid, electroactive polymer, piezoelectric actuator, electrostaticactuator, or other tactile output generating component (e.g., acomponent that converts electrical signals into tactile outputs on thedevice). Contact intensity sensor 165 receives tactile feedbackgeneration instructions from haptic feedback module 133 and generatestactile outputs on device 100 that are capable of being sensed by a userof device 100. In some embodiments, at least one tactile outputgenerator is collocated with, or proximate to, a touch-sensitive surface(e.g., touch-sensitive display system 112) and, optionally, generates atactile output by moving the touch-sensitive surface vertically (e.g.,in/out of a surface of device 100) or laterally (e.g., back and forth inthe same plane as a surface of device 100). In some embodiments, atleast one tactile output generator sensor is located on the back ofdevice 100, opposite touch screen display 112 which is located on thefront of device 100.

Device 100 optionally also includes one or more accelerometers 168. FIG.1A shows accelerometer 168 coupled to peripherals interface 118.Alternately, accelerometer 168 is, optionally, coupled to an inputcontroller 160 in I/O subsystem 106. In some embodiments, information isdisplayed on the touch screen display in a portrait view or a landscapeview based on an analysis of data received from the one or moreaccelerometers. Device 100 optionally includes, in addition toaccelerometer(s) 168, a magnetometer (not shown) and a GPS (or GLONASSor other global navigation system) receiver (not shown) for obtaininginformation concerning the location and orientation (e.g., portrait orlandscape) of device 100.

In some embodiments, the software components stored in memory 102include operating system 126, communication module (or set ofinstructions) 128, contact/motion module (or set of instructions) 130,graphics module (or set of instructions) 132, text input module (or setof instructions) 134, Global Positioning System (GPS) module (or set ofinstructions) 135, and applications (or sets of instructions) 136.Furthermore, in some embodiments memory 102 stores device/globalinternal state 157, as shown in FIGS. 1A and 3. Device/global internalstate 157 includes one or more of: active application state, indicatingwhich applications, if any, are currently active; display state,indicating what applications, views or other information occupy variousregions of touch screen display 112; sensor state, including informationobtained from the device's various sensors and input control devices116; and location information concerning the device's location and/orattitude.

Operating system 126 (e.g., Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, oran embedded operating system such as VxWorks) includes various softwarecomponents and/or drivers for controlling and managing general systemtasks (e.g., memory management, storage device control, powermanagement, etc.) and facilitates communication between various hardwareand software components.

Communication module 128 facilitates communication with other devicesover one or more external ports 124 and also includes various softwarecomponents for handling data received by RF circuitry 108 and/orexternal port 124. External port 124 (e.g., Universal Serial Bus (USB),FIREWIRE, etc.) is adapted for coupling directly to other devices orindirectly over a network (e.g., the Internet, wireless LAN, etc.). Insome embodiments, the external port is a multi-pin (e.g., 30-pin)connector that is the same as, or similar to and/or compatible with the30-pin connector used on iPod (trademark of Apple Inc.) devices.

Contact/motion module 130 optionally detects contact with touch screen112 (in conjunction with display controller 156) and othertouch-sensitive devices (e.g., a touchpad or physical click wheel).Contact/motion module 130 includes various software components forperforming various operations related to detection of contact, such asdetermining if contact has occurred (e.g., detecting a finger-downevent), determining an intensity of the contact (e.g., the force orpressure of the contact or a substitute for the force or pressure of thecontact) determining if there is movement of the contact and trackingthe movement across the touch-sensitive surface (e.g., detecting one ormore finger-dragging events), and determining if the contact has ceased(e.g., detecting a finger-up event or a break in contact).Contact/motion module 130 receives contact data from the touch-sensitivesurface. Determining movement of the point of contact, which isrepresented by a series of contact data, optionally includes determiningspeed (magnitude), velocity (magnitude and direction), and/or anacceleration (a change in magnitude and/or direction) of the point ofcontact. These operations are, optionally, applied to single contacts(e.g., one finger contacts) or to multiple simultaneous contacts (e.g.,“multitouch”/multiple finger contacts). In some embodiments,contact/motion module 130 and display controller 156 detect contact on atouchpad.

In some embodiments, contact/motion module 130 uses a set of one or moreintensity thresholds to determine whether an operation has beenperformed by a user (e.g., to determine whether a user has “clicked” onan icon). In some embodiments at least a subset of the intensitythresholds are determined in accordance with software parameters (e.g.,the intensity thresholds are not determined by the activation thresholdsof particular physical actuators and can be adjusted without changingthe physical hardware of device 100). For example, a mouse “click”threshold of a trackpad or touch screen display can be set to any of alarge range of predefined thresholds values without changing thetrackpad or touch screen display hardware. Additionally, in someimplementations a user of the device is provided with software settingsfor adjusting one or more of the set of intensity thresholds (e.g., byadjusting individual intensity thresholds and/or by adjusting aplurality of intensity thresholds at once with a system-level click“intensity” parameter).

Contact/motion module 130 optionally detects a gesture input by a user.Different gestures on the touch-sensitive surface have different contactpatterns and intensities. Thus, a gesture is, optionally, detected bydetecting a particular contact pattern. For example, detecting a fingertap gesture includes detecting a finger-down event followed by detectinga finger-up (lift off) event at the same position (or substantially thesame position) as the finger-down event (e.g., at the position of anicon). As another example, detecting a finger swipe gesture on thetouch-sensitive surface includes detecting a finger-down event followedby detecting one or more finger-dragging events, and subsequentlyfollowed by detecting a finger-up (lift off) event.

Graphics module 132 includes various known software components forrendering and displaying graphics on touch screen 112 or other display,including components for changing the visual impact (e.g., brightness,transparency, saturation, contrast or other visual property) of graphicsthat are displayed. As used herein, the term “graphics” includes anyobject that can be displayed to a user, including without limitationtext, web pages, icons (such as user-interface objects including softkeys), digital images, videos, animations and the like.

In some embodiments, graphics module 132 stores data representinggraphics to be used. Each graphic is, optionally, assigned acorresponding code. Graphics module 132 receives, from applicationsetc., one or more codes specifying graphics to be displayed along with,if necessary, coordinate data and other graphic property data, and thengenerates screen image data to output to display controller 156.

Haptic feedback module 133 includes various software components forgenerating instructions used by tactile output generator(s) 167 toproduce tactile outputs at one or more locations on device 100 inresponse to user interactions with device 100.

Text input module 134, which is, optionally, a component of graphicsmodule 132, provides soft keyboards for entering text in variousapplications (e.g., contacts 137, e-mail 140, IM 141, browser 147, andany other application that needs text input).

GPS module 135 determines the location of the device and provides thisinformation for use in various applications (e.g., to telephone 138 foruse in location-based dialing, to camera 143 as picture/video metadata,and to applications that provide location-based services such as weatherwidgets, local yellow page widgets, and map/navigation widgets).

Applications 136 optionally include the following modules (or sets ofinstructions), or a subset or superset thereof:

-   -   contacts module 137 (sometimes called an address book or contact        list);    -   telephone module 138;    -   video conferencing module 139;    -   e-mail client module 140;    -   instant messaging (IM) module 141;    -   workout support module 142;    -   camera module 143 for still and/or video images;    -   image management module 144;    -   browser module 147;    -   calendar module 148;    -   widget modules 149, which optionally include one or more of:        weather widget 149-1, stocks widget 149-2, calculator widget        149-3, alarm clock widget 149-4, dictionary widget 149-5, and        other widgets obtained by the user, as well as user-created        widgets 149-6;    -   widget creator module 150 for making user-created widgets 149-6;    -   search module 151;    -   video and music player module 152, which is, optionally, made up        of a video player module and a music player module;    -   notes module 153;    -   map module 154;    -   online video module 155.

Examples of other applications 136 that are, optionally, stored inmemory 102 include other word processing applications, other imageediting applications, drawing applications, presentation applications,JAVA-enabled applications, encryption, digital rights management, voicerecognition, and voice replication.

In conjunction with touch screen 112, display controller 156, contactmodule 130, graphics module 132, and text input module 134, contactsmodule 137 are, optionally, used to manage an address book or contactlist (e.g., stored in application internal state 192 of contacts module137 in memory 102 or memory 370), including: adding name(s) to theaddress book; deleting name(s) from the address book; associatingtelephone number(s), e-mail address(es), physical address(es) or otherinformation with a name; associating an image with a name; categorizingand sorting names; providing telephone numbers or e-mail addresses toinitiate and/or facilitate communications by telephone 138, videoconference 139, e-mail 140, or IM 141; and so forth.

In conjunction with RF circuitry 108, audio circuitry 110, speaker 111,microphone 113, touch screen 112, display controller 156, contact module130, graphics module 132, and text input module 134, telephone module138 are, optionally, used to enter a sequence of characterscorresponding to a telephone number, access one or more telephonenumbers in address book 137, modify a telephone number that has beenentered, dial a respective telephone number, conduct a conversation anddisconnect or hang up when the conversation is completed. As notedabove, the wireless communication optionally uses any of a plurality ofcommunications standards, protocols and technologies.

In conjunction with RF circuitry 108, audio circuitry 110, speaker 111,microphone 113, touch screen 112, display controller 156, optical sensor164, optical sensor controller 158, contact module 130, graphics module132, text input module 134, contact list 137, and telephone module 138,videoconferencing module 139 includes executable instructions toinitiate, conduct, and terminate a video conference between a user andone or more other participants in accordance with user instructions.

In conjunction with RF circuitry 108, touch screen 112, displaycontroller 156, contact module 130, graphics module 132, and text inputmodule 134, e-mail client module 140 includes executable instructions tocreate, send, receive, and manage e-mail in response to userinstructions. In conjunction with image management module 144, e-mailclient module 140 makes it very easy to create and send e-mails withstill or video images taken with camera module 143.

In conjunction with RF circuitry 108, touch screen 112, displaycontroller 156, contact module 130, graphics module 132, and text inputmodule 134, the instant messaging module 141 includes executableinstructions to enter a sequence of characters corresponding to aninstant message, to modify previously entered characters, to transmit arespective instant message (for example, using a Short Message Service(SMS) or Multimedia Message Service (MMS) protocol for telephony-basedinstant messages or using XMPP, SIMPLE, or IMPS for Internet-basedinstant messages), to receive instant messages and to view receivedinstant messages. In some embodiments, transmitted and/or receivedinstant messages optionally include graphics, photos, audio files, videofiles and/or other attachments as are supported in a MMS and/or anEnhanced Messaging Service (EMS). As used herein, “instant messaging”refers to both telephony-based messages (e.g., messages sent using SMSor MMS) and Internet-based messages (e.g., messages sent using XMPP,SIMPLE, or IMPS).

In conjunction with RF circuitry 108, touch screen 112, displaycontroller 156, contact module 130, graphics module 132, text inputmodule 134, GPS module 135, map module 154, and music player module 146,workout support module 142 includes executable instructions to createworkouts (e.g., with time, distance, and/or calorie burning goals);communicate with workout sensors (sports devices); receive workoutsensor data; calibrate sensors used to monitor a workout; select andplay music for a workout; and display, store and transmit workout data.

In conjunction with touch screen 112, display controller 156, opticalsensor(s) 164, optical sensor controller 158, contact module 130,graphics module 132, and image management module 144, camera module 143includes executable instructions to capture still images or video(including a video stream) and store them into memory 102, modifycharacteristics of a still image or video, or delete a still image orvideo from memory 102.

In conjunction with touch screen 112, display controller 156, contactmodule 130, graphics module 132, text input module 134, and cameramodule 143, image management module 144 includes executable instructionsto arrange, modify (e.g., edit), or otherwise manipulate, label, delete,present (e.g., in a digital slide show or album), and store still and/orvideo images.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, and text inputmodule 134, browser module 147 includes executable instructions tobrowse the Internet in accordance with user instructions, includingsearching, linking to, receiving, and displaying web pages or portionsthereof, as well as attachments and other files linked to web pages.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, e-mail client module 140, and browser module 147, calendarmodule 148 includes executable instructions to create, display, modify,and store calendars and data associated with calendars (e.g., calendarentries, to do lists, etc.) in accordance with user instructions.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, and browser module 147, widget modules 149 aremini-applications that are, optionally, downloaded and used by a user(e.g., weather widget 149-1, stocks widget 149-2, calculator widget149-3, alarm clock widget 149-4, and dictionary widget 149-5) or createdby the user (e.g., user-created widget 149-6). In some embodiments, awidget includes an HTML (Hypertext Markup Language) file, a CSS(Cascading Style Sheets) file, and a JavaScript file. In someembodiments, a widget includes an XML (Extensible Markup Language) fileand a JavaScript file (e.g., Yahoo! Widgets).

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, and browser module 147, the widget creator module 150 are,optionally, used by a user to create widgets (e.g., turning auser-specified portion of a web page into a widget).

In conjunction with touch screen 112, display system controller 156,contact module 130, graphics module 132, and text input module 134,search module 151 includes executable instructions to search for text,music, sound, image, video, and/or other files in memory 102 that matchone or more search criteria (e.g., one or more user-specified searchterms) in accordance with user instructions.

In conjunction with touch screen 112, display system controller 156,contact module 130, graphics module 132, audio circuitry 110, speaker111, RF circuitry 108, and browser module 147, video and music playermodule 152 includes executable instructions that allow the user todownload and play back recorded music and other sound files stored inone or more file formats, such as MP3 or AAC files, and executableinstructions to display, present or otherwise play back videos (e.g., ontouch screen 112 or on an external, connected display via external port124). In some embodiments, device 100 optionally includes thefunctionality of an MP3 player, such as an iPod (trademark of AppleInc.).

In conjunction with touch screen 112, display controller 156, contactmodule 130, graphics module 132, and text input module 134, notes module153 includes executable instructions to create and manage notes, to dolists, and the like in accordance with user instructions.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, GPS module 135, and browser module 147, map module 154 are,optionally, used to receive, display, modify, and store maps and dataassociated with maps (e.g., driving directions; data on stores and otherpoints of interest at or near a particular location; and otherlocation-based data) in accordance with user instructions.

In conjunction with touch screen 112, display system controller 156,contact module 130, graphics module 132, audio circuitry 110, speaker111, RF circuitry 108, text input module 134, e-mail client module 140,and browser module 147, online video module 155 includes instructionsthat allow the user to access, browse, receive (e.g., by streamingand/or download), play back (e.g., on the touch screen or on anexternal, connected display via external port 124), send an e-mail witha link to a particular online video, and otherwise manage online videosin one or more file formats, such as H.264. In some embodiments, instantmessaging module 141, rather than e-mail client module 140, is used tosend a link to a particular online video.

Each of the above identified modules and applications correspond to aset of executable instructions for performing one or more functionsdescribed above and the methods described in this application (e.g., thecomputer-implemented methods and other information processing methodsdescribed herein). These modules (e.g., sets of instructions) need notbe implemented as separate software programs, procedures or modules, andthus various subsets of these modules are, optionally, combined orotherwise re-arranged in various embodiments. In some embodiments,memory 102 optionally stores a subset of the modules and data structuresidentified above. Furthermore, memory 102 optionally stores additionalmodules and data structures not described above.

In some embodiments, device 100 is a device where operation of apredefined set of functions on the device is performed exclusivelythrough a touch screen and/or a touchpad (whether included in device 100or on a separate device, such as an input device). By using a touchscreen and/or a touchpad as the primary input control device foroperation of device 100, the number of physical input control devices(such as push buttons, dials, and the like) on device 100 is,optionally, reduced.

The predefined set of functions that are performed exclusively through atouch screen and/or a touchpad optionally include navigation betweenuser interfaces. In some embodiments, the touchpad, when touched by theuser, navigates device 100 to a main, home, or root menu from any userinterface that is displayed on device 100. In such embodiments, a “menubutton” is implemented using a touchpad. In some other embodiments, themenu button is a physical push button or other physical input controldevice instead of a touchpad.

FIG. 1B is a block diagram illustrating exemplary components for eventhandling in accordance with some embodiments. In some embodiments,memory 102 (in FIG. 1A) or 370 (FIG. 3) includes event sorter 170 (e.g.,in operating system 126) and a respective application 136-1 (e.g., anyof the aforementioned applications 137-151, 155, 380-390).

Event sorter 170 receives event information and determines theapplication 136-1 and application view 191 of application 136-1 to whichto deliver the event information. Event sorter 170 includes eventmonitor 171 and event dispatcher module 174. In some embodiments,application 136-1 includes application internal state 192, whichindicates the current application view(s) displayed on touch-sensitivedisplay 112 when the application is active or executing. In someembodiments, device/global internal state 157 is used by event sorter170 to determine which application(s) is (are) currently active, andapplication internal state 192 is used by event sorter 170 to determineapplication views 191 to which to deliver event information.

In some embodiments, application internal state 192 includes additionalinformation, such as one or more of: resume information to be used whenapplication 136-1 resumes execution, user interface state informationthat indicates information being displayed or that is ready for displayby application 136-1, a state queue for enabling the user to go back toa prior state or view of application 136-1, and a redo/undo queue ofprevious actions taken by the user.

Event monitor 171 receives event information from peripherals interface118. Event information includes information about a sub-event (e.g., auser touch on touch-sensitive display 112, as part of a multi-touchgesture). Peripherals interface 118 transmits information it receivesfrom I/O subsystem 106 or a sensor, such as proximity sensor 166,accelerometer(s) 168, and/or microphone 113 (through audio circuitry110). Information that peripherals interface 118 receives from I/Osubsystem 106 includes information from touch-sensitive display 112 or atouch-sensitive surface.

In some embodiments, event monitor 171 sends requests to the peripheralsinterface 118 at predetermined intervals. In response, peripheralsinterface 118 transmits event information. In other embodiments,peripheral interface 118 transmits event information only when there isa significant event (e.g., receiving an input above a predeterminednoise threshold and/or for more than a predetermined duration).

In some embodiments, event sorter 170 also includes a hit viewdetermination module 172 and/or an active event recognizer determinationmodule 173.

Hit view determination module 172 provides software procedures fordetermining where a sub-event has taken place within one or more views,when touch-sensitive display 112 displays more than one view. Views aremade up of controls and other elements that a user can see on thedisplay.

Another aspect of the user interface associated with an application is aset of views, sometimes herein called application views or userinterface windows, in which information is displayed and touch-basedgestures occur. The application views (of a respective application) inwhich a touch is detected optionally correspond to programmatic levelswithin a programmatic or view hierarchy of the application. For example,the lowest level view in which a touch is detected is, optionally,called the hit view, and the set of events that are recognized as properinputs are, optionally, determined based, at least in part, on the hitview of the initial touch that begins a touch-based gesture.

Hit view determination module 172 receives information related tosub-events of a touch-based gesture. When an application has multipleviews organized in a hierarchy, hit view determination module 172identifies a hit view as the lowest view in the hierarchy which shouldhandle the sub-event. In most circumstances, the hit view is the lowestlevel view in which an initiating sub-event occurs (e.g., the firstsub-event in the sequence of sub-events that form an event or potentialevent). Once the hit view is identified by the hit view determinationmodule, the hit view typically receives all sub-events related to thesame touch or input source for which it was identified as the hit view.

Active event recognizer determination module 173 determines which viewor views within a view hierarchy should receive a particular sequence ofsub-events. In some embodiments, active event recognizer determinationmodule 173 determines that only the hit view should receive a particularsequence of sub-events. In other embodiments, active event recognizerdetermination module 173 determines that all views that include thephysical location of a sub-event are actively involved views, andtherefore determines that all actively involved views should receive aparticular sequence of sub-events. In other embodiments, even if touchsub-events were entirely confined to the area associated with oneparticular view, views higher in the hierarchy would still remain asactively involved views.

Event dispatcher module 174 dispatches the event information to an eventrecognizer (e.g., event recognizer 180). In embodiments including activeevent recognizer determination module 173, event dispatcher module 174delivers the event information to an event recognizer determined byactive event recognizer determination module 173. In some embodiments,event dispatcher module 174 stores in an event queue the eventinformation, which is retrieved by a respective event receiver module182.

In some embodiments, operating system 126 includes event sorter 170.Alternatively, application 136-1 includes event sorter 170. In yet otherembodiments, event sorter 170 is a stand-alone module, or a part ofanother module stored in memory 102, such as contact/motion module 130.

In some embodiments, application 136-1 includes a plurality of eventhandlers 190 and one or more application views 191, each of whichincludes instructions for handling touch events that occur within arespective view of the application's user interface. Each applicationview 191 of the application 136-1 includes one or more event recognizers180. Typically, a respective application view 191 includes a pluralityof event recognizers 180. In other embodiments, one or more of eventrecognizers 180 are part of a separate module, such as a user interfacekit (not shown) or a higher level object from which application 136-1inherits methods and other properties. In some embodiments, a respectiveevent handler 190 includes one or more of: data updater 176, objectupdater 177, GUI updater 178, and/or event data 179 received from eventsorter 170. Event handler 190 optionally utilizes or calls data updater176, object updater 177 or GUI updater 178 to update the applicationinternal state 192. Alternatively, one or more of the application views191 includes one or more respective event handlers 190. Also, in someembodiments, one or more of data updater 176, object updater 177, andGUI updater 178 are included in a respective application view 191.

A respective event recognizer 180 receives event information (e.g.,event data 179) from event sorter 170, and identifies an event from theevent information. Event recognizer 180 includes event receiver 182 andevent comparator 184. In some embodiments, event recognizer 180 alsoincludes at least a subset of: metadata 183, and event deliveryinstructions 188 (which optionally include sub-event deliveryinstructions).

Event receiver 182 receives event information from event sorter 170. Theevent information includes information about a sub-event, for example, atouch or a touch movement. Depending on the sub-event, the eventinformation also includes additional information, such as location ofthe sub-event. When the sub-event concerns motion of a touch, the eventinformation optionally also includes speed and direction of thesub-event. In some embodiments, events include rotation of the devicefrom one orientation to another (e.g., from a portrait orientation to alandscape orientation, or vice versa), and the event informationincludes corresponding information about the current orientation (alsocalled device attitude) of the device.

Event comparator 184 compares the event information to predefined eventor sub-event definitions and, based on the comparison, determines anevent or sub-event, or determines or updates the state of an event orsub-event. In some embodiments, event comparator 184 includes eventdefinitions 186. Event definitions 186 contain definitions of events(e.g., predefined sequences of sub-events), for example, event 1(187-1), event 2 (187-2), and others. In some embodiments, sub-events inan event 187 include, for example, touch begin, touch end, touchmovement, touch cancellation, and multiple touching. In one example, thedefinition for event 1 (187-1) is a double tap on a displayed object.The double tap, for example, comprises a first touch (touch begin) onthe displayed object for a predetermined phase, a first lift-off (touchend) for a predetermined phase, a second touch (touch begin) on thedisplayed object for a predetermined phase, and a second lift-off (touchend) for a predetermined phase. In another example, the definition forevent 2 (187-2) is a dragging on a displayed object. The dragging, forexample, comprises a touch (or contact) on the displayed object for apredetermined phase, a movement of the touch across touch-sensitivedisplay 112, and lift-off of the touch (touch end). In some embodiments,the event also includes information for one or more associated eventhandlers 190.

In some embodiments, event definition 187 includes a definition of anevent for a respective user-interface object. In some embodiments, eventcomparator 184 performs a hit test to determine which user-interfaceobject is associated with a sub-event. For example, in an applicationview in which three user-interface objects are displayed ontouch-sensitive display 112, when a touch is detected on touch-sensitivedisplay 112, event comparator 184 performs a hit test to determine whichof the three user-interface objects is associated with the touch(sub-event). If each displayed object is associated with a respectiveevent handler 190, the event comparator uses the result of the hit testto determine which event handler 190 should be activated. For example,event comparator 184 selects an event handler associated with thesub-event and the object triggering the hit test.

In some embodiments, the definition for a respective event 187 alsoincludes delayed actions that delay delivery of the event informationuntil after it has been determined whether the sequence of sub-eventsdoes or does not correspond to the event recognizer's event type.

When a respective event recognizer 180 determines that the series ofsub-events do not match any of the events in event definitions 186, therespective event recognizer 180 enters an event impossible, eventfailed, or event ended state, after which it disregards subsequentsub-events of the touch-based gesture. In this situation, other eventrecognizers, if any, that remain active for the hit view continue totrack and process sub-events of an ongoing touch-based gesture.

In some embodiments, a respective event recognizer 180 includes metadata183 with configurable properties, flags, and/or lists that indicate howthe event delivery system should perform sub-event delivery to activelyinvolved event recognizers. In some embodiments, metadata 183 includesconfigurable properties, flags, and/or lists that indicate how eventrecognizers interact, or are enabled to interact, with one another. Insome embodiments, metadata 183 includes configurable properties, flags,and/or lists that indicate whether sub-events are delivered to varyinglevels in the view or programmatic hierarchy.

In some embodiments, a respective event recognizer 180 activates eventhandler 190 associated with an event when one or more particularsub-events of an event are recognized. In some embodiments, a respectiveevent recognizer 180 delivers event information associated with theevent to event handler 190. Activating an event handler 190 is distinctfrom sending (and deferred sending) sub-events to a respective hit view.In some embodiments, event recognizer 180 throws a flag associated withthe recognized event, and event handler 190 associated with the flagcatches the flag and performs a predefined process.

In some embodiments, event delivery instructions 188 include sub-eventdelivery instructions that deliver event information about a sub-eventwithout activating an event handler. Instead, the sub-event deliveryinstructions deliver event information to event handlers associated withthe series of sub-events or to actively involved views. Event handlersassociated with the series of sub-events or with actively involved viewsreceive the event information and perform a predetermined process.

In some embodiments, data updater 176 creates and updates data used inapplication 136-1. For example, data updater 176 updates the telephonenumber used in contacts module 137, or stores a video file used in videoplayer module 145. In some embodiments, object updater 177 creates andupdates objects used in application 136-1. For example, object updater177 creates a new user-interface object or updates the position of auser-interface object. GUI updater 178 updates the GUI. For example, GUIupdater 178 prepares display information and sends it to graphics module132 for display on a touch-sensitive display.

In some embodiments, event handler(s) 190 includes or has access to dataupdater 176, object updater 177, and GUI updater 178. In someembodiments, data updater 176, object updater 177, and GUI updater 178are included in a single module of a respective application 136-1 orapplication view 191. In other embodiments, they are included in two ormore software modules.

It shall be understood that the foregoing discussion regarding eventhandling of user touches on touch-sensitive displays and/or touchpadsalso applies to other forms of user inputs to operate multifunctiondevices 100 with input-devices, not all of which are initiated on touchscreens. For example, mouse movement and mouse button presses,optionally coordinated with single or multiple keyboard presses orholds; contact movements such as taps, drags, scrolls, etc., ontouch-pads; pen stylus inputs; movement of the device; oralinstructions; detected eye movements; biometric inputs; and/or anycombination thereof are optionally utilized as inputs corresponding tosub-events which define an event to be recognized.

FIG. 2 illustrates a portable or non-portable multifunction device 100having a touch screen 112 in accordance with some embodiments. As statedabove, multifunction device 100 is described as having the variousillustrated structures (such as touch screen 112, speaker 111,accelerometer 168, microphone 113, etc.); however, it is understood thatthese structures optionally reside on separate devices. For example,display-related structures (e.g., display, speaker, etc.) and/orfunctions optionally reside on a separate display device, input-relatedstructures (e.g., touch-sensitive surface, microphone, accelerometer,etc.) and/or functions optionally reside on a separate input device, andremaining structures and/or functions optionally reside on multifunctiondevice 100.

The touch screen 112 optionally displays one or more graphics withinuser interface (UI) 200. In this embodiment, as well as others describedbelow, a user is enabled to select one or more of the graphics by makinga gesture on the graphics, for example, with one or more fingers 202(not drawn to scale in the figure) or one or more styluses 203 (notdrawn to scale in the figure). In some embodiments, selection of one ormore graphics occurs when the user breaks contact with the one or moregraphics. In some embodiments, the gesture optionally includes one ormore taps, one or more swipes (from left to right, right to left, upwardand/or downward) and/or a rolling of a finger (from right to left, leftto right, upward and/or downward) that has made contact with device 100.In some implementations or circumstances, inadvertent contact with agraphic does not select the graphic. For example, a swipe gesture thatsweeps over an application icon optionally does not select thecorresponding application when the gesture corresponding to selection isa tap.

Device 100 optionally also includes one or more physical buttons, suchas “home” or menu button 204. As described previously, menu button 204is, optionally, used to navigate to any application 136 in a set ofapplications that are, optionally executed on device 100. Alternatively,in some embodiments, the menu button is implemented as a soft key in aGUI displayed on touch screen 112.

In one embodiment, device 100 includes touch screen 112, menu button204, push button 206 for powering the device on/off and locking thedevice, volume adjustment button(s) 208, Subscriber Identity Module(SIM) card slot 210, head set jack 212, and docking/charging externalport 124. Push button 206 is, optionally, used to turn the power on/offon the device by depressing the button and holding the button in thedepressed state for a predefined time interval; to lock the device bydepressing the button and releasing the button before the predefinedtime interval has elapsed; and/or to unlock the device or initiate anunlock process. In an alternative embodiment, device 100 also acceptsverbal input for activation or deactivation of some functions throughmicrophone 113. Device 100 also, optionally, includes one or morecontact intensity sensors 165 for detecting intensity of contacts ontouch screen 112 and/or one or more tactile output generators 167 forgenerating tactile outputs for a user of device 100.

FIG. 3 is a block diagram of an exemplary multifunction device with adisplay and a touch-sensitive surface in accordance with someembodiments. Device 300 need not include the display and thetouch-sensitive surface, as described above, but rather, in someembodiments, optionally communicates with the display and thetouch-sensitive surface on other devices. Additionally, device 300 neednot be portable. In some embodiments, device 300 is a laptop computer, adesktop computer, a tablet computer, a multimedia player device (such asa television or a set-top box), a navigation device, an educationaldevice (such as a child's learning toy), a gaming system, or a controldevice (e.g., a home or industrial controller). Device 300 typicallyincludes one or more processing units (CPU's) 310, one or more networkor other communications interfaces 360, memory 370, and one or morecommunication buses 320 for interconnecting these components.Communication buses 320 optionally include circuitry (sometimes called achipset) that interconnects and controls communications between systemcomponents. Device 300 includes input/output (I/O) interface 330comprising display 340, which is typically a touch screen display. I/Ointerface 330 also optionally includes a keyboard and/or mouse (or otherpointing device) 350 and touchpad 355, tactile output generator 357 forgenerating tactile outputs on device 300 (e.g., similar to tactileoutput generator(s) 167 described above with reference to FIG. 1A),sensors 359 (e.g., optical, acceleration, proximity, touch-sensitive,and/or contact intensity sensors similar to contact intensity sensor(s)165 described above with reference to FIG. 1A). Memory 370 includeshigh-speed random access memory, such as DRAM, SRAM, DDR RAM or otherrandom access solid state memory devices; and optionally includesnon-volatile memory, such as one or more magnetic disk storage devices,optical disk storage devices, flash memory devices, or othernon-volatile solid state storage devices. Memory 370 optionally includesone or more storage devices remotely located from CPU(s) 310. In someembodiments, memory 370 stores programs, modules, and data structuresanalogous to the programs, modules, and data structures stored in memory102 of portable or non-portable multifunction device 100 (FIG. 1A), or asubset thereof. Furthermore, memory 370 optionally stores additionalprograms, modules, and data structures not present in memory 102 ofportable or non-portable multifunction device 100. For example, memory370 of device 300 optionally stores drawing module 380, presentationmodule 382, word processing module 384, website creation module 386,disk authoring module 388, and/or spreadsheet module 390, while memory102 of portable or non-portable multifunction device 100 (FIG. 1A)optionally does not store these modules.

Each of the above identified elements in FIG. 3 are, optionally, storedin one or more of the previously mentioned memory devices. Each of theabove identified modules corresponds to a set of instructions forperforming a function described above. The above identified modules orprograms (e.g., sets of instructions) need not be implemented asseparate software programs, procedures or modules, and thus varioussubsets of these modules are, optionally, combined or otherwisere-arranged in various embodiments. In some embodiments, memory 370optionally stores a subset of the modules and data structures identifiedabove. Furthermore, memory 370 optionally stores additional modules anddata structures not described above.

FIG. 4 illustrates an exemplary user interface on a device (e.g., device300, FIG. 3) with a touch-sensitive surface 451 (e.g., a tablet ortouchpad 355, FIG. 3) that is separate from the display 450 (e.g., touchscreen display 112). Device 300 also, optionally, includes one or morecontact intensity sensors (e.g., one or more of sensors 357) fordetecting intensity of contacts on touch-sensitive surface 451 and/orone or more tactile output generators 359 for generating tactile outputsfor a user of device 300.

Although some of the examples which follow will be given with referenceto inputs on touch screen display 112 (where the touch sensitive surfaceand the display are combined), in some embodiments, the device detectsinputs on a touch-sensitive surface that is separate from the display,as shown in FIG. 4. In some embodiments the touch sensitive surface(e.g., 451 in FIG. 4) has a primary axis (e.g., 452 in FIG. 4) thatcorresponds to a primary axis (e.g., 453 in FIG. 4) on the display(e.g., 450). In accordance with these embodiments, the device detectscontacts (e.g., 460 and 462 in FIG. 4) with the touch-sensitive surface451 at locations that correspond to respective locations on the display(e.g., in FIG. 4, 460 corresponds to 468 and 462 corresponds to 470). Inthis way, user inputs (e.g., contacts 460 and 462, and movementsthereof) detected by the device on the touch-sensitive surface (e.g.,451 in FIG. 4) are used by the device to manipulate the user interfaceon the display (e.g., 450 in FIG. 4) of the multifunction device whenthe touch-sensitive surface is separate from the display. It should beunderstood that similar methods are, optionally, used for other userinterfaces described herein.

Additionally, while the following examples are given primarily withreference to finger inputs (e.g., finger contacts, finger tap gestures,finger swipe gestures), it should be understood that, in someembodiments, one or more of the finger inputs are replaced with inputfrom another input device (e.g., a mouse based input or stylus input).For example, a swipe gesture is, optionally, replaced with a mouse click(e.g., instead of a contact) followed by movement of the cursor alongthe path of the swipe (e.g., instead of movement of the contact). Asanother example, a tap gesture is, optionally, replaced with a mouseclick while the cursor is located over the location of the tap gesture(e.g., instead of detection of the contact followed by ceasing to detectthe contact). Similarly, when multiple user inputs are simultaneouslydetected, it should be understood that multiple computer mice are,optionally, used simultaneously, or a mouse and finger contacts are,optionally, used simultaneously.

As used herein, the term “focus selector” refers to an input elementthat indicates a current part of a user interface with which a user isinteracting. In some implementations that include a cursor or otherlocation marker, the cursor acts as a “focus selector,” so that when aninput (e.g., a press input) is detected on a touch-sensitive surface(e.g., touchpad 355 in FIG. 3 or touch-sensitive surface 451 in FIG. 4)while the cursor is over a particular user interface element (e.g., abutton, window, slider or other user interface element), the particularuser interface element is adjusted in accordance with the detectedinput. In some implementations that include a touch-screen display(e.g., touch-sensitive display system 112 in FIG. 1A) that enablesdirect interaction with user interface elements on the touch-screendisplay, a detected contact on the touch-screen acts as a “focusselector,” so that when an input (e.g., a press input by the contact) isdetected on the touch-screen display at a location of a particular userinterface element (e.g., a button, window, slider or other userinterface element), the particular user interface element is adjusted inaccordance with the detected input. In some implementations focus ismoved from one region of a user interface to another region of the userinterface without corresponding movement of a cursor or movement of acontact on a touch-screen display (e.g., by using a tab key or arrowkeys to move focus from one button to another button); in theseimplementations, the focus selector moves in accordance with movement offocus between different regions of the user interface. Without regard tothe specific form taken by the focus selector, the focus selector isgenerally the user interface element (or contact on a touch-screendisplay) that is controlled by the user so as to communicate the user'sintended interaction with the user interface (e.g., by indicating, tothe device, the element of the user interface with which the user isintending to interact). For example, the location of a focus selector(e.g., a cursor, a contact or a selection box) over a respective buttonwhile a press input is detected on the touch-sensitive surface (e.g., atouchpad or touch screen) will indicate that the user is intending toactivate the respective button (as opposed to other user interfaceelements shown on a display of the device).

In some embodiments described herein, one or more operations areperformed in response to detecting a gesture that includes a respectivepress input or in response to detecting the respective press inputperformed with a respective contact (or a plurality of contacts), wherethe respective press input is detected based at least in part ondetecting an increase in intensity of the contact (or plurality ofcontacts) above a press-input intensity threshold. In some embodiments,the respective operation is performed in response to detecting theincrease in intensity of the respective contact above the press-inputintensity threshold (e.g., a “down stroke” of the respective pressinput). In some embodiments, the press input includes an increase inintensity of the respective contact above the press-input intensitythreshold and a subsequent decrease in intensity of the contact belowthe press-input intensity threshold, and the respective operation isperformed in response to detecting the subsequent decrease in intensityof the respective contact below the press-input threshold (e.g., an “upstroke” of the respective press input).

In some embodiments, the device employs intensity hysteresis to avoidaccidental inputs sometimes termed “jitter,” where the device defines orselects a hysteresis intensity threshold with a predefined relationshipto the press-input intensity threshold (e.g., the hysteresis intensitythreshold is X intensity units lower than the press-input intensitythreshold or the hysteresis intensity threshold is 75%, 90% or somereasonable proportion of the press-input intensity threshold). Thus, insome embodiments, the press input includes an increase in intensity ofthe respective contact above the press-input intensity threshold and asubsequent decrease in intensity of the contact below the hysteresisintensity threshold that corresponds to the press-input intensitythreshold, and the respective operation is performed in response todetecting the subsequent decrease in intensity of the respective contactbelow the hysteresis intensity threshold (e.g., an “up stroke” of therespective press input). Similarly, in some embodiments, the press inputis detected only when the device detects an increase in intensity of thecontact from an intensity at or below the hysteresis intensity thresholdto an intensity at or above the press-input intensity threshold and,optionally, a subsequent decrease in intensity of the contact to anintensity at or below the hysteresis intensity, and the respectiveoperation is performed in response to detecting the press input (e.g.,the increase in intensity of the contact or the decrease in intensity ofthe contact, depending on the circumstances).

For ease of explanation, the description of operations performed inresponse to a press input associated with a press-input intensitythreshold or in response to a gesture including the press input are,optionally, triggered in response to detecting either: an increase inintensity of a contact above the press-input intensity threshold, anincrease in intensity of a contact from an intensity below thehysteresis intensity threshold to an intensity above the press-inputintensity threshold, a decrease in intensity of the contact below thepress-input intensity threshold, and/or a decrease in intensity of thecontact below the hysteresis intensity threshold corresponding to thepress-input intensity threshold. Additionally, in examples where anoperation is described as being performed in response to detecting adecrease in intensity of a contact below the press-input intensitythreshold, the operation is, optionally, performed in response todetecting a decrease in intensity of the contact below a hysteresisintensity threshold corresponding to, and lower than, the press-inputintensity threshold.

FIG. 5 illustrates a block diagram of an exemplary architecture for thedevice 500 according to some embodiments of the disclosure. In theembodiment of FIG. 5, media content is optionally received by device 500via network interface 502, which is optionally a wireless or wiredconnection. The one or more processors 504 optionally execute any numberof programs stored in memory 506 or storage, which optionally includesinstructions to perform one or more of the methods and/or processesdescribed herein (e.g., methods 700, 900, and/or 1100).

In some embodiments, display controller 508 causes the various userinterfaces of the disclosure to be displayed on display 500. Further,input to device 500 is optionally provided by remote 510 via remoteinterface 512, which is optionally a wireless or a wired connection. Itis understood that the embodiment of FIG. 5 is not meant to limit thefeatures of the device of the disclosure, and that other components tofacilitate other features described in the disclosure are optionallyincluded in the architecture of FIG. 5 as well. In some embodiments,device 500 optionally corresponds to one or more of multifunction device100 in FIGS. 1A and 2, and device 300 in FIG. 3; network interface 502optionally corresponds to one or more of RF circuitry 108, external port124, and peripherals interface 118 in FIGS. 1A and 2, and networkcommunications interface 360 in FIG. 3; processor 504 optionallycorresponds to one or more of processor(s) 120 in FIG. 1A and CPU(s) 310in FIG. 3; display controller 508 optionally corresponds to one or moreof display controller 156 in FIG. 1A and I/O interface 330 in FIG. 3;memory 506 optionally corresponds to one or more of memory 102 in FIG.1A and memory 370 in FIG. 3; remote interface 512 optionally correspondsto one or more of peripherals interface 118, and I/O subsystem 106(and/or its components) in FIG. 1A, and I/O interface 330 in FIG. 3;remote 510 optionally corresponds to and or includes one or more ofspeaker 111, touch-sensitive display system 112, microphone 113, opticalsensor(s) 164, contact intensity sensor(s) 165, tactile outputgenerator(s) 167, other input control devices 116, accelerometer(s) 168,proximity sensor 166, and I/O subsystem 106 in FIG. 1A, andkeyboard/mouse 350, touchpad 355, tactile output generator(s) 357, andcontact intensity sensor(s) 359 in FIG. 3, and touch-sensitive surface451 in FIG. 4; and display 514 optionally corresponds to one or more oftouch-sensitive display system 112 in FIGS. 1A and 2, display 340 inFIG. 3, and display 450 in FIG. 4.

User Interfaces and Associated Processes Spatial and Temporal CharacterRecognition

Accurate recognition of handwritten character input to a device isgenerally desirable, as accurate recognition reduces unwanted input tothe device by a user. The embodiments described below provide ways toprovide for accurate handwritten character input recognition on adevice, thus enhancing the user's interaction with the device. Enhancinginteractions with a device reduces the amount of time needed by a userto perform operations, and thus reduces the power usage of the deviceand increases battery life for battery-powered devices.

It is understood that people use devices. When a person uses a device,that person is optionally referred to as a user of the device. Thus, inthis disclosure, references to a “person” or “people” are optionallyinterchangeable with references to a “user” or “users”, and referencesto a “user” or “users” are optionally interchangeable with references toa “person” or “people”.

FIGS. 6A-6D illustrate exemplary ways in which handwritten characterinput to a device is recognized in accordance with some embodiments ofthe disclosure. The embodiments in these figures are used to illustratethe processes described below, including the processes described withreference to FIGS. 7A-7D.

FIG. 6A illustrates an exemplary input detected on a touch-sensitivesurface of the disclosure. Touch-sensitive surface 451 optionallycorresponds to a touch-sensitive surface on remote 510 in FIG. 5. Theinput illustrated in FIG. 6A optionally includes movement of contact 601in an upward-rightward direction. The movement of contact 601 optionallydefines stroke 602. In some embodiments, a stroke is defined as themovement of a contact from touchdown of the contact to liftoff of thecontact. In some embodiments, a stroke is defined as the movement of acontact from a start of motion of the contact until the contact has beensubstantially stationary (e.g., has moved less than a threshold amountin distance and/or speed) for at least a threshold amount of time.

Stroke 602 optionally includes a spatial component and a temporalcomponent. The spatial component of stroke 602 optionally describes thefinal shape or appearance of stroke 602—in this case, a diagonal linetiled to the right. The temporal component of stroke 602 optionallydescribes what stroke 602 looked like over time. For example, thetemporal component of stroke 602 optionally includes informationidentifying where stroke 602 began (e.g., in this case, in a bottom-leftposition on touch-sensitive surface 451), and how stroke 602 progressedas a function of time (e.g., in this case, in an upward-rightwarddirection, ending in a top-right position on touch-sensitive surface451).

In recognizing a character that stroke 602 corresponds to, a device(e.g., device 500 in FIG. 5 in communication with touch-sensitivesurface 451) optionally analyzes the spatial component of stroke 602 andthe temporal component of stroke 602. Analyzing both the spatial andtemporal components of stroke 602 will, in many circumstances results ina more accurate determination of stroke 602's character correspondencethan analyzing the spatial component or temporal component alone, asdescribed below. For example, a stroke that is meant to be a lower caseA but that looks like an O will, in some circumstances, appear tocorrespond to an O when analyzed spatially, but when analyzedtemporally, the stroke will appear to correspond to an “a”, because thetemporal component optionally indicates that there was movement of thecontact creating the tail of the “a” even if that movement overlaps withthe rest of the shape so that a spatial analysis of the shape looks morelike an O. This movement is unlikely to exist if the input were an O andthus an O is an unlikely character for insertion. Additionally, somecharacters are frequently drawn with a stroke starting moving in aparticular direction (e.g., down and to the left or up and to the right)and thus a stroke that is drawn up and to the right is more likely to bethe beginning of an M than the beginning of an X.

FIG. 6B shows a block diagram illustrating an exemplary characterrecognition technique applied to a stroke. As discussed above, stroke602 optionally includes spatial component 604 and temporal component606, and both components are optionally analyzed in determining one ormore characters to which the stroke corresponds.

The spatial component 604 of stroke 602 is optionally inputted into aspatial probability determiner 608. Spatial probability determiner 608optionally determines one or more probabilities that spatial component604 of stroke 602 corresponds to one or more respective characters. Forexample, spatial probability determiner 608 optionally determines theprobability that stroke 602 corresponds to one or more of an “A”, “B”,“C”, etc. (optionally including any other character supported by thedevice of the disclosure) based on spatial component 604 (e.g.,determines the probability that stroke 602 corresponds to a particularcharacter based on the shape of stroke 602 when the determination ismade). As shown in FIG. 6B, in some embodiments, spatial probabilitydeterminer 608 optionally determines respective probabilities thatstroke 602 corresponds to each of characters A-Z (P₁S through P₂₆S)based on spatial component 604 and, optionally, one or more othernon-letter characters (e.g., /, ?, #, $, @, &, etc.). In someembodiments, probabilities 612 are ordered based on probability (e.g.,the character to which spatial probability determiner 608 determinesstroke 602 is most likely to correspond is optionally listed first, andthe character to which spatial probability determiner 608 determinesstroke 602 is least likely to correspond is optionally listed last).

Analogously, the temporal component 606 of stroke 602 is optionallyinputted into a temporal probability determiner 610. Temporalprobability determiner 610 optionally determines one or moreprobabilities that temporal component 606 of stroke 602 corresponds toone or more respective characters. For example, temporal probabilitydeterminer 610 optionally determines the probability that stroke 602corresponds to one or more of an “A”, “B”, “C”, etc. (optionallyincluding any other character supported by the device of the disclosure)based on temporal component 606 (e.g., determines the probability thatstroke 602 corresponds to a particular character based on how stroke 602looked over time and/or changes in speed of stroke 602 over time). Forexample, a stroke that is meant to be a lower case A but that looks likean O optionally most likely corresponds to an O when analyzed spatially,but when analyzed temporally, optionally most likely corresponds to an“a”, because the temporal component optionally indicates that there wasmovement of the contact creating the tail of the “a” even if thatmovement overlaps with the rest of the shape so that a spatial analysisof the shape looks more like an O. This movement would not exist if theinput were an O. Additionally, some characters are frequently drawn witha stroke starting moving in a particular direction (e.g., down and tothe left or up and to the right) and thus a stroke that is drawn up andto the right is more likely to be the beginning of an M than thebeginning of an X. As shown in FIG. 6B, in some embodiments, temporalcomponent 606 optionally includes information indicating that stroke 602was drawn up and to the right, which optionally informs how likely it isthat stroke 602 corresponds to various characters such as an “A”, “M”,“X”, etc. As shown in FIG. 6B, in some embodiments, temporal probabilitydeterminer 610 optionally determines respective probabilities thatstroke 602 corresponds to each of characters A-Z (P₁T through P₂₆T)based on temporal component 606. As discussed above, in someembodiments, probabilities 614 are ordered based on probability (e.g.,the character to which temporal probability determiner 610 determinesstroke 602 is most likely to correspond is optionally listed first, andthe character to which temporal probability determiner 610 determinesstroke 602 is least likely to correspond is optionally listed last).

Aggregate probabilities 618 (P₁A through P₂₆A) that stroke 602corresponds to one or more characters are optionally determined based onspatial probabilities 612 and temporal probabilities 614 via aggregateprobability determiner 616. In some embodiments, aggregate probabilitydeterminer 616 considers both the spatial 612 and temporal 614probabilities in making a final determination about stroke 602. In someembodiments, the spatial 612 and temporal 614 probabilities aremultiplied to result in aggregate probabilities 618. In someembodiments, the spatial 612 and temporal 614 probabilities are addedtogether to result in aggregate probabilities 618, sometimes withrespective weighting factors. In some embodiments, probabilities 618 areordered based on probability (e.g., the character to which aggregateprobability determiner 616 determines stroke 602 is most likely tocorrespond is optionally listed first, and the character to whichaggregate probability determiner 616 determines stroke 602 is leastlikely to correspond is optionally listed last).

Aggregate probabilities 618 optionally provide more accurate likelihoodsthat stroke 602 corresponds to particular characters than spatialprobabilities 612 or temporal probabilities 614 alone. In someembodiments, it is necessary to determine whether two or morehandwritten input strokes correspond to a single character (e.g., arepart of the same character) or correspond to more than one character(e.g., are part of different characters).

FIG. 6C illustrates an exemplary input detected on a touch-sensitivesurface. The input detected on touch-sensitive surface 451 optionallyincludes movement of contact 619 in a downward-rightward direction(defining stroke 620), followed by movement of contact 621 in anupward-rightward direction (defining stroke 622). The device of thedisclosure optionally needs to determine whether strokes 620 and 622correspond to the same character (e.g., an “X”) or to differentcharacters (e.g., stroke 620 corresponds to an “M”, and stroke 622corresponds to an “A”).

FIG. 6D shows a block diagram illustrating an exemplary characterrecognition technique applied to two or more strokes. Spatial/temporalprobability determiner 624 optionally determines the probability thatstrokes 620 and 622 correspond to different characters (e.g., stroke 620corresponds to a first character, and stroke 622 corresponds to a secondcharacter). In some embodiments, this determination is performed usingthe technique described in FIG. 6B, where the spatial and temporalcomponents of each of strokes 620 and 622 are analyzed separately. Theoutputs of the technique described in FIG. 6B are then utilized toevaluate the likelihood that strokes 620 and 622 correspond to differentcharacters (e.g., a first character followed by a second character). Insome embodiments, this determination is also based on a language modelthat indicates the likelihood that the first character would be followedby the second character in a particular language (e.g., in determininghow likely it is that stroke 620 corresponds to the first character andstroke 622 corresponds to the second character, the device alsooptionally utilizes a language model that informs how likely it is thatthe first character and the second character will be found together in,for example, words in the particular language).

Spatial/temporal probability determiner 626 optionally determines theprobability that strokes 620 and 622 correspond to the same character(e.g., stroke 620 and stroke 622 together correspond to a singlecharacter). In some embodiments, this determination is performed usingthe technique described in FIG. 6B, where the spatial and temporalcomponents of strokes 620 and 622 are analyzed together (e.g., as acombination). The outputs of the technique described in FIG. 6B are thenutilized to evaluate the likelihood that strokes 620 and 622 correspondto a single character.

Selector 628 optionally selects whichever proposition (e.g., separatecharacters or the same character) is more likely based on theprobabilities determined in spatial/temporal probability determiners 624and 626.

It is understood that the various functional blocks illustrated in FIGS.6B and 6D are merely illustrative, and do not limit the structure of anydevice of the disclosure. For example, spatial probability determiner608, temporal probability determiner 610, aggregate probabilitydeterminer 616, spatial/temporal probability determiners 624 and 626,and selector 628 are, optionally, implemented by the same physicalstructure (e.g., processor, logic, etc.), or multiple physicalstructures.

FIGS. 7A-7D are flow diagrams illustrating a method 700 of recognizinghandwritten input in accordance with some embodiments. The method 700 isoptionally performed at an electronic device such as device 500 asdescribed above with reference to FIG. 5, including a set top box orother user interface generating device that is in communication with aremote control and a display device. Some operations in method 700 are,optionally, combined and/or the order of some operations is, optionally,changed.

As described below, the method 700 provides ways in which a deviceoptionally recognizes handwritten character input to the device. Themethod reduces the cognitive burden on a user when interacting with auser interface of the device of the disclosure, thereby creating a moreefficient human-machine interface. For battery-operated electronicdevices, increasing the efficiency of the user's interaction with theuser interface conserves power and increases the time between batterycharges.

In some embodiments, an electronic device (e.g., a set top box or otheruser interface generating device that is in communication with a remotecontrol and a display device, such as device 500 in FIG. 5) with one ormore processors and memory receives (702) an indication of a first inputthat includes movement of a contact (e.g., a finger contact or styluscontact, such as contact 601 in FIG. 6A) detected on a touch-sensitivesurface of a device (e.g., a touch-sensitive surface of a remote controlor a portable multifunction device with a touchscreen display, such astouch-sensitive surface 451 in FIG. 6A). The movement of the contactoptionally comprises a first stroke (704) (e.g., in some embodiments, astroke is defined as the movement of a contact from touchdown of thecontact to liftoff of the contact, such as stroke 602 in FIG. 6A), andthe first stroke optionally has a spatial component (e.g., the way thatthe final stroke looks, or the final shape of the stroke, such asspatial component 604 in FIG. 6B) and a temporal component (706) (e.g.,how the stroke looked over time, such as temporal component 606. Forexample, the temporal component of the stroke optionally includesinformation as to where the stroke began, and how the stroke progressedas a function of time). In some embodiments, the first input comprisesthe first stroke detected during a first time period (e.g., stroke 620in FIG. 6C) and a second stroke detected during a second time period(e.g., stroke 622 in FIG. 6C), the second stroke having a spatialcomponent and a temporal component (708). For example, the first inputis optionally the two strokes that form an X, or the first input is an Ofollowed by a U)

In some embodiments, the electronic device determines (710) a firstprobability that the first stroke corresponds to a first character(e.g., letter, number, symbol, etc.) based on the spatial component ofthe first stroke (e.g., determine the probability that the first strokecorresponds to a particular character based on the shape of the strokewhen the determination is made, such as probabilities 612 in FIG. 6B).

In some embodiments, the electronic device determines (712) a secondprobability that the first stroke corresponds to the first characterbased on the temporal component of the first stroke. For example, theelectronic device optionally determines the probability that the firststroke corresponds to the particular character based on how the strokelooked over time and/or changes in speed of the stroke over time, suchas probabilities 614 in FIG. 6B. For example, a stroke that is meant tobe a lower case A but that looks like an O optionally most likelycorresponds to an O when analyzed spatially, but when analyzedtemporally, optionally most likely corresponds to an “a”, because thetemporal component optionally indicates that there was movement of thecontact creating the tail of the “a” even if that movement overlaps withthe rest of the shape so that a spatial analysis of the shape looks morelike an O. This movement would not exist if the input were an O.Additionally, some characters are frequently drawn with a strokestarting moving in a particular direction (e.g., down and to the left orup and to the right) and thus a stroke that is drawn up and to the rightis more likely to be the beginning of an M than the beginning of an X.

In some embodiments, the electronic device determines (714) an aggregateprobability that the first stroke corresponds to the first characterbased on the first probability and the second probability (e.g.,considers both the spatial and temporal probabilities in making a finaldetermination about the stroke, such as probabilities 618 in FIG. 6B. Insome embodiments, the spatial and temporal probabilities are multiplied.In some embodiments, the spatial and temporal probabilities are addedtogether, sometimes with respective weighting factors). In someembodiments, the determinations of the first, second and aggregateprobabilities are performed while the first stroke is still beingdetected (716) (e.g., at least a preliminary determination of theaggregate probability is completed before the first stroke is completed.The determinations need not wait for the end of the first stroke). Insome embodiments, the determinations of the first, second and aggregateprobabilities are repeated periodically while the first stroke is stillbeing detected (718) (e.g., the spatial, temporal and aggregateprobabilities are determined multiple times per stroke, each time withlarger portions of the stroke as the stroke gets further defined withfurther movement of the contact. In some embodiments, the determinationsare repeated at fixed-time intervals. In some embodiments, thedeterminations are triggered when there has been a change in the strokethat is greater than a threshold amount—e.g., there is a change indirection, velocity, acceleration, etc., of the stroke greater than athreshold amount, and this change causes the determinations to be made).

In some embodiments, while the first stroke is still being detected(720), the electronic device determines (722), at a first time, a firstaggregate probability that the first stroke corresponds to the firstcharacter (e.g., makes a first aggregate probability determinationduring the first stroke). In some embodiments, the electronic devicefurther provides (724) a first character suggestion for display on adisplay device (e.g., a television or other display device) based on thefirst aggregate probability (e.g., after determining an aggregateprobability that the first stroke corresponds to the letter “a”, if theaggregate probability associated with the letter “a” is the highestaggregate probability of aggregate probabilities associated with othercharacters, the electronic device displays the letter “a” as asuggestion on the display device. In some embodiments, a user optionallyselects the suggestion to enter the letter “a” in a text field, forexample, without having to complete the stroke input as an input. If theaggregate probability associated with another character is the highestaggregate probability, display that character as a suggestion on thedisplay device). In some embodiments, the electronic device furtherdetermines (726), at a second time after the first time, a secondaggregate probability that the first stroke corresponds to the firstcharacter (e.g., makes a second aggregate probability determinationduring the first stroke). In some embodiments, the electronic deviceprovides (728) a second character suggestion, different from the firstcharacter suggestion, for display on the display device based on thesecond aggregate probability (e.g., updates the displayed charactersuggestion as the aggregate probabilities associated with characterschange over time as more of the stroke has been inputted. For example,the electronic device optionally changes the displayed characterselection from a “P” to a “D” as more of the stroke has been inputted).

In some embodiments, the electronic device determines (730) a thirdprobability that the first stroke corresponds to the first character andthe second stroke corresponds to a second character based on thetemporal and spatial components of the first and second strokes (e.g.,determines how likely it is that the first and second strokes correspondto different characters, such as in spatial/temporal probabilitydeterminer 624 in FIG. 6D. In some embodiments, this determination, asabove, is based on the temporal and spatial components of each of thefirst and second strokes). In some embodiments, determining the thirdprobability comprises determining the third probability based on alanguage model indicating a likelihood that the first character will befollowed by the second character in a particular language (732) (e.g.,in determining how likely it is that the first stroke corresponds to thefirst character and the second stroke corresponds to the secondcharacter, the electronic device optionally also utilizes a languagemodel that informs how likely it is that the first character and thesecond character will be found together in, for example, words in theparticular language).

In some embodiments, the electronic device determines (734) a fourthprobability that a combination of the first stroke and the second strokecorresponds to a third character based on the temporal and spatialcomponents of the combination of the first and second strokes (e.g.,determines how likely it is that the first and second strokes togethercorrespond to a single character, such as in spatial/temporalprobability determiner 626 in FIG. 6D. In some embodiments, thisdetermination, as above, is based on the temporal and spatial componentsof each of the first and second strokes, including temporal and spatialcomponents of the combination of the first and second strokes).

In some embodiments, in accordance with a determination that the thirdprobability is higher than the fourth probability, the electronic deviceselects (736) the first character and the second character as inputs(e.g., such as in selector 628 in FIG. 6D). In some embodiments, inaccordance with a determination that the fourth probability is higherthan the third probability, the electronic device selects (738) thethird character as an input (e.g., such as in selector 628 in FIG. 6D).

In some embodiments, the electronic device determines (740) a pluralityof aggregate probabilities for a plurality of characters, a firstaggregate probability comprising an aggregate probability that the firststroke corresponds to a first character of the plurality of charactersand a second aggregate probability comprising an aggregate probabilitythat the first stroke corresponds to a second character of the pluralityof characters (e.g., determines an aggregate probability that the firststroke corresponds to an “A”, determines an aggregate probability thatthe first stroke corresponds to a “B”, determines an aggregateprobability that the first stroke corresponds to a “C”, etc.). In someembodiments, the electronic device selects (742), from the plurality ofcharacters, a character having the highest aggregate probability as aninput (e.g., selects “B” as an input because its associated aggregateprobability is the highest of the determined aggregate probabilities).

In some embodiments, the electronic device detects (744) an end of thefirst stroke (e.g., detects liftoff of the contact that made the firststroke, or detects a pause in movement of the contact that made thefirst stroke that indicates an end of the first stroke). In someembodiments, after detecting the end of the first stroke (746), theelectronic device detects (748) at least a portion of a second stroke.In response to detecting the portion of the second stroke, theelectronic device optionally determines (750) whether the first strokeand the second stroke correspond to a single character based on temporalinformation about the first stroke and the second stroke (e.g.,determines whether a “|” stroke followed by a “—” stroke corresponds toa “T”. In some embodiments, the two strokes correspond to an “l”followed by the beginning of an “e”, for example. For example, strokesthat are close to each other in time are more likely to be part of asingle character than strokes that are further apart in time).

In some embodiments, the second stroke spatially overlaps at least aportion of the first stroke (e.g., the first stroke was detected in afirst region of the touch-sensitive surface, and the second stroke wasdetected at least partially in the first region of the touch-sensitivesurface), and the first stroke and the second stroke are determined asbelonging to different characters based at least in part on the temporalinformation (752) (e.g., the first stroke and the second stroke aredetermined to belong to different characters based at least in part on:the fact that the second stroke was detected after the first stroke, thetime between the end of the first stroke and the beginning of the secondstroke, and/or the acceleration/speed/direction of the contact makingthe first stroke and the acceleration/speed/direction of the contactmaking the second stroke, etc. For example, a “\” stroke is optionallydetermined as belonging to a preceding “K”, and a subsequent “/” strokeis optionally determined as belonging to a subsequent “M” because thefirst stroke is inputted from top-left to bottom-right, and the secondstroke is inputted from bottom-left to top-right).

In some embodiments, the first stroke is spatially segregated from thesecond stroke (e.g., the first stroke was detected in a first region ofthe touch-sensitive surface, and the second stroke was detected in asecond region of the touch-sensitive surface that does not overlay withthe first region), and the first stroke and the second stroke aredetermined as belonging to the same character based at least in part onthe temporal information (754) (e.g., the first stroke and the secondstroke are determined to belong to the same character based at least inpart on: the fact that the second stroke was detected after the firststroke, the time between the end of the first stroke and the beginningof the second stroke, and/or the acceleration/speed/direction of thecontact making the first stroke and the acceleration/speed/direction ofthe contact making the second stroke, etc. For example, a “\” stroke anda subsequent “/” stroke are optionally determined as belonging to asingle “X” because the first stroke is inputted from top-left tobottom-right, and the second stroke is inputted from top-right tobottom-left).

It should be understood that the particular order in which theoperations in FIGS. 7A-7D have been described is merely exemplary and isnot intended to indicate that the described order is the only order inwhich the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to other methods described herein (e.g.,methods 900 and 1100) are also applicable in an analogous manner tomethod 700 described above with respect to FIGS. 7A-7D. For example, thetouch-sensitive surface described above with reference to method 700optionally has one or more of the characteristics of the touch-sensitivesurfaces described herein with reference to other methods describedherein (e.g., methods 900 and 1100). For brevity, these details are notrepeated here.

The operations in the information processing methods described aboveare, optionally, implemented by running one or more functional modulesin an information processing apparatus such as general purposeprocessors (e.g., as described above with respect to FIGS. 1A, 3 and 5)or application specific chips.

The operations described above with reference to FIGS. 7A-7D are,optionally, implemented by components depicted in FIGS. 1A-1B. Forexample, receiving operation 702, and determination operations 710, 712and 714 are, optionally, implemented by event sorter 170, eventrecognizer 180, and event handler 190. Event monitor 171 in event sorter170 detects a contact on touch-sensitive display 112, and eventdispatcher module 174 delivers the event information to application136-1. A respective event recognizer 180 of application 136-1 comparesthe event information to respective event definitions 186, anddetermines whether a first contact at a first location on thetouch-sensitive surface corresponds to a predefined event or sub-event,such as selection of an object on a user interface. When a respectivepredefined event or sub-event is detected, event recognizer 180activates an event handler 190 associated with the detection of theevent or sub-event. Event handler 190 optionally utilizes or calls dataupdater 176 or object updater 177 to update the application internalstate 192. In some embodiments, event handler 190 accesses a respectiveGUI updater 178 to update what is displayed by the application.Similarly, it would be clear to a person having ordinary skill in theart how other processes can be implemented based on the componentsdepicted in FIGS. 1A-1B.

Handwritten Input Feedback

When a user is providing handwritten input to a device, it can bebeneficial for the device to provide some feedback to the user about theuser's input and the device's interpretation of that input. This cangive the user opportunity to adjust its input if needed to make it morelikely that the desired input will be recognized by the device. Theembodiments described below provide ways that a device optionallypresents such feedback for handwritten input. Enhancing interactionswith a device reduces the amount of time needed by a person to performoperations, and thus reduces the power usage of the device and increasesbattery life for battery-powered devices.

FIGS. 8A-8E illustrate exemplary ways in which feedback for handwritteninput is presented in a user interface in accordance with someembodiments of the disclosure. The embodiments in these figures are usedto illustrate the processes described below, including the processesdescribed with reference to FIGS. 9A-9D.

FIG. 8A illustrates an exemplary handwritten input and resulting userinterface presented in accordance with some embodiments. A userinterface is optionally presented on display 450, and an input isoptionally detected on touch-sensitive surface 451. Display 450optionally corresponds to display 514 in FIG. 5, and touch-sensitivesurface 451 optionally corresponds to a touch-sensitive surface onremote 510 in FIG. 5. The user interface optionally includes a regioninto which text is to be inputted, such as text entry field 802. Theuser interface also optionally includes gesture display region 804,which is optionally a region for displaying gesture feedbackcorresponding to an input detected on touch-sensitive surface 451.

Handwritten input is optionally detected on touch-sensitive surface 451.The handwritten input optionally includes movement of contact 801, asillustrated in FIG. 8A. Gesture display region 804 optionally displays arepresentation 806 of the handwritten input (e.g., a representation ofthe movement of contact 801). In some embodiments, representation 806 ofthe handwritten input optionally includes a contact position indicator(e.g., a glowing dot) representing a current location of contact 801 ontouch-sensitive surface 451, and a trail representing one or more pastlocations of contact 801 on touch-sensitive surface 451. In someembodiments, a visual emphasis of a respective point in the trail variesdepending on the amount of time that has elapsed since the contactposition indicator was at the respective point in the trail (e.g., thetrail fades out over time. In some embodiments, the glowing dotrepresents contact 801, and as contact 801 moves, it leaves a trailrepresenting how contact 801 has moved, in which points on the trailstart to fade as a function of time since the points were created).

In some embodiments, and as illustrated in FIG. 8A, gesture displayregion 804 is displayed at a location in which character entry is toperformed (e.g., in-line with text entry field 802).

In addition to gesture display region, in some embodiments, a candidatecharacter 808 is displayed concurrently with representation 806 of themovement of contact 801. The candidate character 808 is optionally acharacter that corresponds to the movement of contact 801 (e.g., themost likely candidate that corresponds to the movement of the contact).As shown in FIG. 8A, in some embodiments, the most likely candidatecharacter is determined to be a “C”, and the “C” is displayedconcurrently with representation 806 of the movement of contact 801. Asfurther input is detected on touch-sensitive surface 451, the userinterface displayed on display 450 is optionally updated accordingly.

FIG. 8B illustrates an updating of a user interface in accordance withadditional input detected on a touch-sensitive surface. In someembodiments, various aspects of the user interface displayed on display450 are optionally continually updated as input is detected ontouch-sensitive surface 451. In FIG. 8B, additional movement of contact801 has been detected on touch-sensitive surface 451 with respect tothat in FIG. 8A. In particular, the movement of contact 801 hascontinued in a circular fashion to approach the shape of a circle (e.g.,the shape of an “O”). As a result, representation 806 of the movement ofcontact 801 has been updated to reflect this additional movement, andthe candidate character 808 determined to correspond to the movement ofcontact 801 has been updated to reflect that the movement of contact 801now most likely corresponds to an “O” rather than a “C”, as was the casein FIG. 8A.

In some embodiments, as characters are entered into text entry field802, gesture display region 804 shifts to the next area in text entryfield 802 into which characters are to be inputted.

FIG. 8C illustrates an exemplary shifting of the gesture display regionafter a candidate character has been determined to be a final character.Candidate character “O” 808 has been determined to be a final character,and has been entered into text entry field 802 as final character 809.This optionally involves a determination that the input detected ontouch-sensitive surface 451 in FIG. 8B corresponds to candidatecharacter “O” 808, and that any additional input detected ontouch-sensitive surface 451 would and/or does correspond to a differentcharacter, a determination that candidate character “O” 808 is the finalcharacter, and entering it in text entry field 802. In some embodiments,this occurs in response to input not being detected on touch-sensitivesurface 451 for a threshold amount of time (0.1, 0.5, or 1 second, forexample); in some embodiments, this occurs in response to receiving anindication of an input detected on touch-sensitive surface 451indicating that candidate character “O” 808 is to be inputted in theuser interface; in some embodiments, this occurs in response to adetermination by the device that it is unlikely that further input ontouch-sensitive surface 451 corresponds to the same character as inputalready received on touch-sensitive surface 451.

After final character 809 has been entered in text entry field 802,gesture display region 804 is optionally moved to the next location inthe user interface (e.g., the next location in text entry field 802) atwhich another character is to be entered, as illustrated in FIG. 8C.

After gesture display region 804 has been moved, as described, characterentry is optionally continued in a manner similar to as described withreference to FIGS. 8A-8C.

FIG. 8D illustrates an exemplary continuation of handwritten inputrecognition and user interface feedback provided after the movement ofgesture display region 804 has completed. As illustrated in FIG. 8D,handwritten input recognition and user interface feedback optionallycontinues as described above with references to FIGS. 8A-8C.

FIG. 8E illustrates an exemplary handwritten input and resulting userinterface presented in accordance with some embodiments. In someembodiments, the candidate character 808 is displayed as an overlay onrepresentation 806 of the movement of contact 801 such that a shape anda position of the candidate character 808 is similar to a shape and aposition of representation 806 of the movement of contact 801. In someembodiments, the device attempts to match the trail left by the glowingdot, for example, as much as possible to the candidate character so thatthe lines/strokes of the candidate character align with thelines/strokes of the trail). As shown in FIG. 8E, the “C” candidatecharacter 808 is overlaid on the representation 806 of the movement ofcontact 801, and a shape and a position of the candidate character 808is similar to a shape and a position of representation 806 of themovement of contact 801.

FIGS. 9A-9D are flow diagrams illustrating a method 900 of presentingfeedback for handwritten input in accordance with some embodiments. Themethod 900 is optionally performed at an electronic device such asdevice 500 as described above with reference to FIG. 5, including a settop box or other user interface generating device that is incommunication with a remote control and a display device. Someoperations in method 900 are, optionally, combined and/or the order ofsome operations is, optionally, changed.

As described below, the method 900 provides ways in which a deviceoptionally presents feedback for handwritten input in a user interface.The method reduces the cognitive burden on a user when interacting witha user interface on the device, thereby creating a more efficienthuman-machine interface. For battery-operated electronic devices,increasing the efficiency of the user's interaction with the userinterface conserves power and increases the time between batterycharges.

In some embodiments, an electronic device (e.g., a set top box or otheruser interface generating device that is in communication with a remotecontrol and a display device, such as device 500 in FIG. 5) with one ormore processors and memory generates (902) a user interface for displayon a display device (e.g., a television or other display device),wherein the user interface includes a gesture display region (e.g., aregion for displaying gesture feedback corresponding to an inputreceived on a touch-sensitive surface of a device, such as gesturedisplay region 804 in FIG. 8A). In some embodiments, the user interfaceincludes a text entry field (e.g., search field, web address field,username/password field, such as text entry field 802 in FIG. 8A), andthe gesture display region is displayed in-line with the text entryfield (904) (e.g., the representation of the movement of the contact isdisplayed in or adjacent to an area of the text entry field in which thenext text/character is to be inputted).

In some embodiments, while the user interface is displayed on thedisplay device, the electronic device receives (906) an indication of afirst input that includes movement of a contact (e.g., a finger contactor stylus contact, such as contact 801 in FIG. 8A) detected on atouch-sensitive surface of a device (e.g., a touch-sensitive surface ofa remote control or a portable multifunction device with a touchscreendisplay, such as touch-sensitive surface 451 in FIG. 8A).

In some embodiments, after receiving the indication of the first input(908) (in some embodiments, this is while receiving the indication ofthe first input. In some embodiments, this is in response to receivingthe first input), the electronic device displays (910) a representationof the movement of the contact in the gesture display region (e.g.,displays the representation of the movement of the contact in thegesture display region in the user interface, such as representation 806of the movement of contact 801 in FIG. 8A). In some embodiments, therepresentation of the movement of the contact comprises (912) a contactposition indicator (e.g., a glowing dot) representing a current locationof the contact on the touch-sensitive surface of the device (914), and atrail representing one or more past locations of the contact on thetouch-sensitive surface of the device, wherein a visual emphasis of arespective point in the trail varies depending on the amount of timethat has elapsed since the contact position indicator was at therespective point in the trail (916) (e.g., the trail fades out overtime. In some embodiments, the glowing dot represents the contact, andas the contact moves, it leaves a trail representing how the contact hasmoved, in which points on the trail start to fade as a function of timesince the points were created). In some embodiments, the representationof the movement of the contact is displayed in a region of a first textentry field that is visually distinguished from other regions of thefirst text entry field (918) (e.g., the representation of the movementof the contact is displayed in a region of the text entry field—forexample, the region of the text entry field into which the current textis to inputted—having a slightly different shade than the rest of thetext entry field. In some embodiments, the representation of themovement of the contact has an outline around it to differentiate itfrom the rest of the text entry field, such as illustrated by gesturedisplay region 806 in FIG. 8A. The representation of the movement of thecontact optionally has any visual feature that differentiates it,visually, from the text entry field generally).

In some embodiments, after receiving the indication of the first input(908), the electronic device determines (920) a first candidatecharacter that corresponds to the movement of the contact (e.g.,determine that “C” is the most likely candidate that corresponds to themovement of the contact). In some embodiments, determining the firstcandidate character comprises determining the first candidate characterfrom a plurality of candidate characters that correspond to the movementof the contact (922) (e.g., the movement of the contact could correspondto a plurality of candidate characters, one of which—the first candidatecharacter—the device determines to be the best and selects to bedisplayed in the gesture display region).

In some embodiments, after receiving the indication of the first input(908), the electronic device concurrently displays (924) the firstcandidate character with the representation of the movement of thecontact in the gesture display region (e.g., displays both the firstcandidate character (e.g., “C”) and the representation of the movementof the contact, such as representation 806 of the movement of contact801 and candidate character 808 in FIG. 8A). In some embodiments,displaying the first candidate character in the gesture display regioncomprises displaying the first candidate character in the gesturedisplay region until a second candidate character is determined to be amost likely candidate character (926) (e.g., the first candidatecharacter is optionally currently the most likely candidate character,but will optionally be replaced in the gesture display region if anothercharacter becomes the most likely candidate character based onadditional movement of the contact). In some embodiments, displaying thefirst candidate character in the gesture display region comprisesdisplaying the first candidate character overlaid on the representationof the movement of the contact in the gesture display region (928). Insome embodiments, in the user interface, the first candidate characteris overlaid on the representation of the movement of the contact suchthat a shape and a position of the first candidate character is similarto a shape and a position of the representation of the movement of thecontact (930) (e.g., attempt to match the trail left by the glowing dot,for example, as much as possible to the first candidate character sothat the lines/strokes of the first candidate character align with thelines/strokes of the trail). In some embodiments, the candidatecharacter is displayed in a predefined location, such as a center of thegesture display region at a predefined size.

In some embodiments, the electronic device detects (932) additionalmovement of the contact of the first input, determines (934) that thesecond candidate character is the most likely candidate character (e.g.,determines that a new character is now the most likely candidatecharacter), ceases (936) display of the first candidate character in thegesture display region, and concurrently displays (938) the secondcandidate character with the representation of the movement of thecontact in the gesture display region (e.g., as illustrated in FIGS.8A-8B).

In some embodiments, the gesture display region is displayed at a firstlocation in the user interface at which the first candidate character isto be entered (940) (e.g., the gesture display region is displayed at alocation where text/characters are to be entered in the user interface;for example, text entry field 802 in FIG. 8A), and the electronicdevice, in response to a determination that the first candidatecharacter is a final character, enters (942) the first candidatecharacter in the first location in the user interface (e.g., upondetermining that the first input corresponds to the first candidatecharacter, and that any additional input would/does correspond to adifferent character, the electronic device optionally determines thatthe first candidate character is the final character, and enter it in,for example, a text entry field (e.g., as illustrated in FIG. 8C). Insome embodiments, this occurs in response to input not being detectedfor a threshold amount of time (0.1, 0.5, or 1 second, for example); insome embodiments, this occurs in response to receiving an indication ofan input indicating that the first candidate character is to be inputtedin the user interface; in some embodiments, this occurs in response to adetermination by the device that it is unlikely that further input onthe touch-sensitive surface will correspond to the same character asinput already received on the touch-sensitive surface). In someembodiments, entering the first candidate in the first location is inresponse to detecting liftoff of the contact of the first input (944)(in some embodiments, this occurs in response to detecting liftoff ofthe contact and no further input for longer than a threshold amount oftime (e.g., 0.1, 0.5 or 1 second)).

In some embodiments, the electronic device, after entering the firstcandidate character in the first location, moves (946) the gesturedisplay region to a second location in the user interface at which asecond candidate character is to be entered (e.g., moves the gesturedisplay region from character entry location to character entry locationin the user interface as characters are entered at the respectivelocations, such as illustrated in FIG. 8C).

In some embodiments, the electronic device receives (948) an indicationof further movement of the contact, and, in accordance with adetermination that movement of the contact, including the furthermovement of the contact, corresponds to a second candidate character,updates (950) the user interface to (e.g., a determination that thesecond candidate character is the best candidate character from aplurality of candidate characters that correspond to the movement of thecontact and the further movement of the contact. For example, thefurther movement of the contact has changed the best guess of whatcharacter the movement of the contact corresponds to): cease to displaythe first candidate character (952), and display the second candidatecharacter overlaid on the representation of the movement of the contact(954) (e.g., as the contact continues to move, the electronic deviceoptionally uses the additional movement information to update the bestcandidate character that is displayed overlaid on the representation ofthe movement of the contact). In some embodiments, in accordance with adetermination that the first candidate character continues to be thebest candidate character from a plurality of candidate characters thatcorrespond to the movement of the contact and the further movement ofthe contact (e.g., the further movement of the contact has not changedthe best guess of what character the movement of the contact correspondsto), the user interface continues to display the first candidatecharacter overlaid on the representation of the movement of the contact.

In some embodiments, the visually distinguished region of the first textentry field is a current character input region of the first text entryfield into which a current character is to be inputted (956), and theelectronic device receives (958) a request to switch to inputtingcharacters in a second character input region of the first text entryfield. In some embodiments, in response to receiving the request, theelectronic device updates (960) the user interface to shift the visuallydistinguished region to the second character input region of the firsttext entry field (e.g., shift the visually distinguished region to thenext position in the text entry field into which text/a character is tobe inputted, such as illustrated in FIG. 8C).

In some embodiments, before updating the user interface to shift thevisually distinguished region to the second character input region(962), the electronic device determines (964) a final charactercorresponding to the movement of the contact (e.g., determines the finalcharacter to which movement of the contact corresponds. In someembodiments, this occurs in response to input not being detected for athreshold amount of time (0.1, 05, or 1 second, for example); in someembodiments, this occurs in response to receiving an indication of aninput indicating that a current candidate character is to be inputted inthe user interface; in some embodiments, this occurs in response to adetermination by the device that it is unlikely that further input onthe touch-sensitive surface will correspond to the same character asinput already received on the touch-sensitive surface). In someembodiments, the electronic device inputs (966) the final character intothe current character region of the text entry field (e.g., enters thefinal character into the current character entry position in the textentry field, such as final character 809 in FIG. 8C).

It should be understood that the particular order in which theoperations in FIGS. 9A-9D have been described is merely exemplary and isnot intended to indicate that the described order is the only order inwhich the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to other methods described herein (e.g.,methods 700 and 1100) are also applicable in an analogous manner tomethod 900 described above with respect to FIGS. 9A-9D. For example, theuser interface, display device and inputs described above with referenceto method 900 optionally have one or more of the characteristics of theuser interfaces, display devices and inputs described herein withreference to other methods described herein (e.g., methods 700 and1100). For brevity, these details are not repeated here.

The operations in the information processing methods described aboveare, optionally, implemented by running one or more functional modulesin an information processing apparatus such as general purposeprocessors (e.g., as described above with respect to FIGS. 1A, 3 and 5)or application specific chips.

The operations described above with reference to FIGS. 9A-9D are,optionally, implemented by components depicted in FIGS. 1A-1B. Forexample, generation operation 902, receiving operation 906, anddisplaying operation 910 are, optionally, implemented by event sorter170, event recognizer 180, and event handler 190. Event monitor 171 inevent sorter 170 detects a contact on touch-sensitive display 112, andevent dispatcher module 174 delivers the event information toapplication 136-1. A respective event recognizer 180 of application136-1 compares the event information to respective event definitions186, and determines whether a first contact at a first location on thetouch-sensitive surface corresponds to a predefined event or sub-event,such as selection of an object on a user interface. When a respectivepredefined event or sub-event is detected, event recognizer 180activates an event handler 190 associated with the detection of theevent or sub-event. Event handler 190 optionally utilizes or calls dataupdater 176 or object updater 177 to update the application internalstate 192. In some embodiments, event handler 190 accesses a respectiveGUI updater 178 to update what is displayed by the application.Similarly, it would be clear to a person having ordinary skill in theart how other processes can be implemented based on the componentsdepicted in FIGS. 1A-1B.

Character Recognition Correction

When providing handwritten input to a device, a user may wish to correcta previously inputted character in a simple manner. Thus, it can bebeneficial for a device to provide a robust handwritten input correctionuser interface such that interaction with the device is enhanced. Theembodiments described below provide ways to present such a correctionuser interface. Enhancing interactions with a device reduces the amountof time needed by a user to perform operations, and thus reduces thepower usage of the device and increases battery life for battery-powereddevices.

FIGS. 10A-10K illustrate exemplary ways in which an electronic devicepresents a handwritten input correction user interface in accordancewith some embodiments of the disclosure. The embodiments in thesefigures are used to illustrate the processes described below, includingthe processes described with reference to FIGS. 11A-11D.

FIG. 10A illustrates an exemplary user interface into which charactersare being inputted. Display 450 optionally displays a user interfacethat includes a candidate character region (e.g., a region in the userinterface into which one or more characters are inputted), such as textentry field 1002. Display 450 optionally corresponds to display 514 inFIG. 5. A “T” and an “a” have optionally already been inputted into textentry field 802. Indicator 1004 optionally indicates the next positioninto which a character, the handwritten input corresponding to which,will be inputted in text entry field 802. Indicator 1004 is included forease of description, but need not actually be displayed in the userinterface displayed on display 450.

Input is optionally being detected on touch-sensitive surface 451.Touch-sensitive surface 451 optionally corresponds to a touch-sensitivesurface on remote 510 in FIG. 5. The input detected on touch-sensitivesurface 451 optionally includes movement of contact 1001, asillustrated.

The device optionally identifies a character that corresponds to themovement of contact 1001 to input that character into text entry field802.

FIG. 10B illustrates recognition and inputting of a candidate characterthat corresponds to input detected on a touch-sensitive surface. Asshown in FIG. 10B, in some embodiments, the device has identified a “p”as corresponding to the movement of contact 1001 detected ontouch-sensitive surface 451, and has inputted and displayed candidatecharacter “p” 1006 at location 1004 in text entry field 1002.

In some circumstances, a user wishes to change or correct the inputtingof candidate character “p” 1006 in text entry field 1002 in order toselect a different character to be inputted in text entry field 1002instead.

FIG. 10C illustrates part of an exemplary candidate character correctionin accordance with some embodiments. As discussed above, a “p” wasidentified and inputted into text entry field 1002. However, in somecircumstances, a user wishes to change the “p” that was inputted intotext entry field 1002 to instead input a different character. In orderto initiate such a change, in some embodiments, the device receives arequest to delete the “p” character in text entry field 1002. As shownin FIG. 10C, in some embodiments, this request is a right-to-left swipedetected on touch-sensitive surface 451 as defined by the movement ofcontact 1003. It is understood that any request to delete a candidatecharacter is within the scope of the disclosure, including detection ofselection of a delete button in the user interface, on an input device,or otherwise.

FIG. 10D illustrates deletion of a candidate character and displaying ofother candidate characters in response to receiving a request to deletea candidate character. In response to the movement of contact 1003detected on touch-sensitive surface 451, the device optionally deletescandidate character “p” from text entry field 1002, and displays, inplace of candidate character “p”, a plurality of other candidatecharacters 1008 that correspond to the movement of contact 1001 in FIG.10A (e.g., the movement of the contact that resulted in the inputting ofcandidate character “p” in the first instance). For example, theplurality of other candidate characters are characters other thancandidate character “p” that correspond to the input that was used toinput candidate character “o” into the candidate character region (e.g.,text entry field 1002) in the first place; or, alternative charactermatches.

As shown in FIG. 10D, in some embodiments, the plurality of othercandidate characters 1008 include a “P”, a “B”, an “R” and a “&”. Insome embodiments, the plurality of other candidate characters 1008 isdisplayed in a layout similar to a layout of touch-sensitive surface451. For example, the plurality of candidate characters 1008 isoptionally displayed as a 2×2 grid in the user interface, with a firstcharacter in the top-left (e.g., character “P”), a second character inthe top-right (e.g., character “R”), a third character in thebottom-right (e.g., character “&”), and a fourth character in thebottom-left (e.g., character “B”). Selection of a respective one of thecharacters is optionally accomplished by detecting a tap in the regionon touch-sensitive surface 4451 (top-left, top-right, bottom-right,bottom-left) corresponding to the region in the grid in which therespective character is displayed. The device optionally detectsselection of one of the plurality of other candidate characters 1008 toinput the selected other candidate character into text entry field 1002,or optionally detects another input on touch-sensitive surface 451 todismiss the plurality of other candidate characters 1008 from the userinterface.

FIG. 10E illustrates detection of a selection of one of the plurality ofother candidate characters for entry into text entry field 1002. Asshown in FIG. 10E, in some embodiments, contact 1005 has been detectedin the upper-right region of touch-sensitive surface 451. As a result,character “R” is inputted into text entry field 1002 in place ofplurality of other candidate characters 1008 (and in place of originalcandidate character “p”), as illustrated in FIG. 10E. Others of theplurality of other candidate characters 1008 could have optionally beenselected in an analogous manner.

Instead of selecting one of the plurality of other candidate characters1008 shown in FIG. 10D, in some circumstances, a user optionallydismisses the plurality of other candidate characters 1008.

FIG. 1OF illustrates dismissal of the plurality of other candidatecharacters displayed in the user interface. A request to dismiss theplurality of other candidate characters 1008 is optionally detected ontouch-sensitive surface 451 while the plurality of other candidatecharacters are displayed, such as in FIG. 10D. As shown in FIG. 10F, insome embodiments, this request corresponds to a right-to-left swipedefined by movement of contact 1007. In some embodiments, the request todismiss the plurality of other candidate characters 1008 is moregenerally a swipe in the same direction as the swipe for deleting one ofthe candidate characters (e.g., the right-to-left swipe defined bymovement of contact 1003 in FIG. 10C to delete candidate character “p”).

In response to detection of the swipe defined by the movement of contact1007 detected on touch-sensitive surface, the device optionally ceasesto display the plurality of other candidate characters 1008 displayed inFIG. 10D, as illustrated in FIG. 10F. Now, as shown in FIG. 10F, in someembodiments, only “T” and “a” remain in text entry field 1002. In somecircumstances, a user optionally deletes candidate character “a” in textentry field 1002 in the same manner as described with references toFIGS. 10C-10D.

FIG. 10G illustrates deletion of a second candidate character anddisplaying of further candidate characters in response to receiving arequest to delete the second candidate character. Similar to above,detection of movement of contact 1009 on touch-sensitive surface 451that defines a right-to-left swipe optionally results in deletion ofcandidate character “a” from text entry field 1002. As before, afterdeletion of candidate character “a” from text entry field 1002, aplurality of candidate characters 1010 corresponding to the input thatwas used to input candidate character “a” into text entry field 1002 inthe first place are optionally displayed in place of candidate character“a” in text entry field 1002. Selection and/or dismissal of theplurality of candidate character 1010 are optionally performed asdescribed above with respect to FIGS. 10D-10F. Thus, the device of thedisclosure optionally maintains alternative candidate character matchesfor more than one candidate character displayed in the user interface,allowing a user to sequentially delete the candidate characters and seealternative candidate character matches for each deleted candidatecharacter.

FIGS. 10H-10I illustrate the insertion of a space into the userinterface in accordance with some embodiments. In some embodiments, inresponse to a forward swipe detected on touch-sensitive surface 451, asillustrated by movement of contact 1011 in FIG. 10H, the electronicdevice inputs a space into the candidate character region (e.g., textentry field 1002). FIG. 10I illustrates movement of indicator 1004 bythe electronic device to indicate the insertion of the space into textentry field 1002 in response to detection of the forward swipe shown inFIG. 10H.

FIGS. 10J-10K illustrate the display of different candidate charactersbased on the type of candidate character region (e.g., text entry field)into which the device is inputting text. FIG. 10J illustrates anexemplary plurality of other candidate characters 1012 displayed whentext entry field 1002 is, for example, a search field or an otherwiseregular text entry field (e.g., a text entry field into which entry ofcharacters other than letters is unlikely). In some embodiments, theplurality of other candidate characters 1012 displayed when text entryfield 1002 is a search field are optionally mostly or all letters.However, in some embodiments, the type of text entry field optionallyaffects the device's determination of the candidate characters that aregoing to be displayed by the electronic device. FIG. 10K illustrates anexemplary plurality of other candidate characters 1014 displayed whentext entry field 1020 is, for example, an email address entry field. Iftext entry field 1020 is an email address entry field, as shown in FIG.10K, the likelihood that a “@” character is displayed as a candidatecharacter is optionally higher than if the text entry field is a searchfield or an otherwise regular text entry field, such as text entry field1002 in FIG. 10J. In FIG. 10K, the plurality of other candidatecharacters 1012 optionally include the “@” character 1018 in place ofthe “G” character 1016 in FIG. 10J, for the reasons given above.

FIGS. 11A-11D are flow diagrams illustrating a method 1100 of presentinga handwritten input correction user interface in accordance with someembodiments. The method 1100 is optionally performed at an electronicdevice such as device 500 as described above with reference to FIG. 5,including a set top box or other user interface generating device thatis in communication with a remote control and a display device. Someoperations in method 1100 are, optionally, combined and/or the order ofsome operations is, optionally, changed.

As described below, the method 1100 provides ways in which a deviceoptionally presents a handwritten input correction user interface. Themethod reduces the cognitive burden on a user when interacting with auser interface on the device, thereby creating a more efficienthuman-machine interface. For battery-operated electronic devices,increasing the efficiency of the user's interaction with the userinterface conserves power and increases the time between batterycharges.

In some embodiments, an electronic device (e.g., a set top box or otheruser interface generating device that is in communication with a remotecontrol and a display device, such as device 500 in FIG. 5) with one ormore processors and memory generates (1102) a user interface for displayon a display device (e.g., a television or other display device),wherein the user interface includes a candidate character region (1104)(e.g., a region in the user interface into which one or more charactersare inputted; for example, a text entry field, such as text entry field1002 in FIG. 10A). In some embodiments, the candidate character regionin the user interface comprises a text entry field (1106) (e.g., searchfield, web address field, username/password field, such as text entryfield 1002 in FIG. 10A).

In some embodiments, while the user interface is displayed on thedisplay device, the electronic device receives (1108) an indication of afirst input that includes movement of a contact (e.g., a finger contactor stylus contact, such as contact 1001 in FIG. 10A) detected on atouch-sensitive surface of a device (e.g., a touch-sensitive surface ofa remote control or a portable multifunction device with a touchscreendisplay, such as touch-sensitive surface 451 in FIG. 10A).

In some embodiments, in response to detecting the movement of thecontact, the electronic device identifies (1110) a first candidatecharacter that corresponds to the movement, such as candidate character1006 in FIG. 10B (e.g., determines that the movement of the contactcorresponds to a “C”), and updates the user interface to include thefirst candidate character in the candidate character region (e.g.,inputs a “C” in the candidate character region).

In some embodiments, the electronic device receives (1112) a request todelete the first candidate character (e.g., by detecting selection of adelete button, by detecting a delete gesture on the touch-sensitivesurface, etc., such as detection of movement of contact 1003 in FIG.10C).

In some embodiments, in response to receiving the request to delete thefirst candidate character, the electronic device updates (1114) the userinterface by deleting the first candidate character in the candidatecharacter region (1116), as illustrated in FIG. 10C, and displaying afirst plurality of other candidate characters that correspond to themovement of the contact in place of the first candidate character (1118)(e.g., the first plurality of other candidate characters are charactersother than the first character that correspond to the input that wasused to input the first character into the candidate character region inthe first place, such as the plurality of other candidate characters1008 in FIG. 10D; e.g., alternative character matches for thehandwriting input).

In some embodiments, a first region of the touch-sensitive surface ofthe device (e.g., a touch-sensitive surface of a remote control or aportable multifunction device with a touchscreen display) is associatedwith a first candidate character of the first plurality of othercandidate characters, and a second region of the touch-sensitive surfaceof the device, different than the first region, is associated with asecond candidate character of the first plurality of other candidatecharacters (1120) (e.g., in some embodiments, the relative location ofthe first region on the touch-sensitive surface to the second region onthe touch-sensitive surface is the same as the relative location of thefirst candidate character to the second candidate character in the userinterface. That is, the first plurality of other candidate characters isdisplayed in a layout similar to a layout of the touch-sensitive surfaceof the device, as illustrated in FIG. 10D).

In some embodiments, the electronic device receives (1122) an indicationof a second input (e.g., tap or tap-and-click) detected on thetouch-sensitive surface of the device, and in response to receiving theindication of the second input (1124), in accordance with adetermination that the second input was detected on the first region ofthe touch-sensitive surface of the device, inputs (1126) the firstcandidate character into the candidate character region (e.g., detectionof contact 1005 in FIG. 10E optionally results in the electronic deviceinputting candidate character “R” into text entry field 1002). In someembodiments, in accordance with a determination that the second inputwas detected on the second region of the touch-sensitive surface of thedevice, the electronic device inputs (1128) the second candidatecharacter into the candidate character region. For example, theplurality of candidate characters is optionally displayed as a 2×2 gridin the user interface, with a first character in the top-left, a secondcharacter in the top-right, a third character in the bottom-right, and afourth character in the bottom-left, as illustrated in FIG. 10C.Selection of a respective one of the characters is optionallyaccomplished by tapping in the region on the touch-sensitive surface(top-left, top-right, bottom-right, bottom-left) corresponding to theregion in the grid in which the respective character is displayed.

In some embodiments, the request to delete the first candidate charactercomprises a first swipe (e.g., a right-to-left horizontal swipe)detected on the touch-sensitive surface of the device (1130) (e.g., atouch-sensitive surface of a remote control or a portable multifunctiondevice with a touchscreen display). In some embodiments, the electronicdevice receives (1132) an indication of a second swipe (e.g., aright-to-left horizontal swipe, such as the swipe defined by movement ofcontact 1007 in FIG. 10F) detected on the touch-sensitive surface of thedevice (in some embodiments, this is any request to dismiss the firstplurality of other candidate characters in the user interface. In someembodiments, this is another right-to-left horizontal swipe detected onthe touch-sensitive surface of the device following detection of theright-to-left horizontal swipe to delete the first candidate character,or more generally, a swipe in the same direction as the swipe fordeleting the first candidate character). In some embodiments, inresponse to the second swipe, the electronic device ceases (1134)display of the first plurality of other candidate characters in the userinterface, as illustrated in FIG. 10F.

In some embodiments, after ceasing display of the first plurality ofother candidate characters in the user interface, the electronic devicereceives (1136) an indication of a third swipe (e.g., a right-to-lefthorizontal swipe, such as the swipe defined by movement of contact 1009in FIG. 10G) detected on the touch-sensitive surface of the device (insome embodiments, this is any request to delete a character in thecandidate character region. In some embodiments, this is anotherright-to-left horizontal swipe detected on the touch-sensitive surfaceof the device following detection of the right-to-left horizontal swipeto dismiss the first plurality of candidate characters, or moregenerally, a swipe in the same direction as the swipe for dismissing thefirst plurality of candidate characters). In some embodiments, inresponse to the third swipe, the electronic device updates (1138) theuser interface by: deleting a second candidate character in thecandidate character region (1140) (e.g., another character, other thanthe first candidate character, that is in the candidate characterregion, such as candidate character “a” in FIG. 10F), and displaying asecond plurality of other candidate characters associated with thesecond candidate character (e.g., the plurality of candidate characters1010 in FIG. 10G) in place of the second candidate character (1142),such as illustrated in FIG. 10G. For example, in the case that thesecond candidate character was entered using handwriting recognition,the second plurality of candidate characters are characters, sometimesother than the second candidate character, that correspond to the inputthat was used to input the second candidate character into the candidatecharacter region in the first place (e.g., alternative character matchesfor the handwriting input).

In some embodiments, the request to delete the first candidate charactercomprises a first swipe (e.g., a right-to-left horizontal swipe, or abackward swipe) detected on the touch-sensitive surface of the device(1144) (e.g., a touch-sensitive surface of a remote control or aportable multifunction device with a touchscreen display). In someembodiments, the electronic device receives (1146) an indication of asecond input that corresponds to selection of a respective one of thefirst plurality of other candidate characters (e.g., any input detectedon the touch-sensitive surface for selecting the respective candidatecharacter, such as the region-based selection discussed previously). Insome embodiments, in response to the second input, the electronic deviceupdates (1148) the user interface to include the respective one of thefirst plurality of other candidate characters in the candidate characterregion (e.g., enters the selected character into the candidate characterregion in the user interface, such as illustrated in FIG. 10E).

In some embodiments, after updating the user interface to include therespective one of the first plurality of other candidate characters inthe candidate character region, the electronic device receives (1150) anindication of a second swipe detected on the touch-sensitive surface ofthe device (e.g., a touch-sensitive surface of a remote control or aportable multifunction device with a touchscreen display), the swipehaving a direction opposite the first swipe (e.g., a left-to-righthorizontal swipe, or a forward swipe). In some embodiments, in responseto the second swipe, the electronic device inputs (1152) a space next tothe respective one of the first plurality of other candidate charactersin the candidate character region, as illustrated in FIGS. 10H-10I(e.g., a swipe forward adds a space to the candidate character region,whereas a swipe backward deletes a character in the candidate characterregion and presents an alternate character user interface, as describedpreviously).

In some embodiments, while displaying the respective one of the firstplurality of other candidate characters in the candidate characterregion, the electronic device receives (1154) an indication of a secondswipe detected on the touch-sensitive surface of the device (e.g., atouch-sensitive surface of a remote control or a portable multifunctiondevice with a touchscreen display). In some embodiments, in accordancewith a determination that the second swipe comprises a swipe having asame direction as the first swipe (e.g., the swipe used to delete thefirst candidate character. In some embodiments, a right-to-lefthorizontal swipe, or a backward swipe), the electronic device updates(1156) the user interface by deleting the respective one of the firstplurality of other candidate characters in the candidate characterregion. In some embodiments, in accordance with a determination that thesecond swipe comprises a swipe and hold, the swipe having a samedirection as the first swipe (e.g., the swipe used to delete the firstcandidate character. In some embodiments, a right-to-left horizontalswipe, or a backward swipe, followed by a holding of the contact at theend of the swipe for longer than a threshold period (0.1, 0.5 or 1seconds)), the electronic device updates (1158) the user interface bydeleting the respective one of the first plurality of other candidatecharacters in the candidate character region and other candidatecharacters in the candidate character region until a release of the holdis detected (e.g., delete characters one by one in the candidatecharacter region until liftoff of the contact defining the swipe isdetected).

In some embodiments, in accordance with a determination that a type ofthe text entry field comprises a first type (e.g., an email addressentry field), the electronic device displays (1160) a first set ofcandidate characters as the first plurality of other candidatecharacters, and in accordance with a determination that the type of thetext entry field comprises a second type (e.g., a number entry field),different from the first type, the electronic device displays (1162) asecond set of candidate characters, different from the first set ofcandidate characters, as the first plurality of other candidatecharacters. For example, the type of the text entry field optionallyaffects the electronic device's determination of the candidatecharacters that are going to be displayed. If the text entry field is anemail address entry field, for example, the likelihood that a “@” symbolis displayed as a candidate character is optionally higher than if thetext entry field is a number or regular text entry field, as illustratedin FIGS. 10J-10K.

It should be understood that the particular order in which theoperations in FIGS. 11A-11D have been described is merely exemplary andis not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to other methods described herein (e.g.,methods 700 and 900) are also applicable in an analogous manner tomethod 1100 described above with respect to FIGS. 11A-11D. For example,the user interface, display device and touch-sensitive surface describedabove with reference to method 1100 optionally have one or more of thecharacteristics of the user interfaces, display devices andtouch-sensitive surfaces described herein with reference to othermethods described herein (e.g., methods 700 and 900). For brevity, thesedetails are not repeated here.

The operations in the information processing methods described aboveare, optionally, implemented by running one or more functional modulesin an information processing apparatus such as general purposeprocessors (e.g., as described above with respect to FIGS. 1A, 3 and 5)or application specific chips.

The operations described above with reference to FIGS. 11A-11D are,optionally, implemented by components depicted in FIGS. 1A-1B. Forexample, generation operation 1102, receiving operation 1108,identifying operation 1110, and updating operation 1114 are, optionally,implemented by event sorter 170, event recognizer 180, and event handler190. Event monitor 171 in event sorter 170 detects a contact ontouch-sensitive display 112, and event dispatcher module 174 deliversthe event information to application 136-1. A respective eventrecognizer 180 of application 136-1 compares the event information torespective event definitions 186, and determines whether a first contactat a first location on the touch-sensitive surface corresponds to apredefined event or sub-event, such as selection of an object on a userinterface. When a respective predefined event or sub-event is detected,event recognizer 180 activates an event handler 190 associated with thedetection of the event or sub-event. Event handler 190 optionallyutilizes or calls data updater 176 or object updater 177 to update theapplication internal state 192. In some embodiments, event handler 190accesses a respective GUI updater 178 to update what is displayed by theapplication. Similarly, it would be clear to a person having ordinaryskill in the art how other processes can be implemented based on thecomponents depicted in FIGS. 1A-1B.

In accordance with some embodiments, FIG. 12 shows a functional blockdiagram of an electronic device 1200 configured in accordance with theprinciples of the various described embodiments. The functional blocksof the device are, optionally, implemented by hardware, software, or acombination of hardware and software to carry out the principles of thevarious described embodiments. It is understood by persons of skill inthe art that the functional blocks described in FIG. 12 are, optionally,combined or separated into sub-blocks to implement the principles of thevarious described embodiments. Therefore, the description hereinoptionally supports any possible combination or separation or furtherdefinition of the functional blocks described herein.

As shown in FIG. 12, an electronic device 1200 optionally includes areceiving unit 1202 configured to receive inputs, and a processing unit1204 coupled to the receiving unit 1202. In some embodiments, theprocessing unit 1204 includes a determining unit 1206, a displayenabling unit 1208, a selecting unit 1210, and a detecting unit 1212.

In some embodiments, the receiving unit 1202 is configured to receive anindication of a first input that includes movement of a contact detectedon a touch-sensitive surface of a device, wherein the movement of thecontact comprises a first stroke, and the first stroke has a spatialcomponent and a temporal component.

In some embodiments, the processing unit 1205 is configured to determinea first probability that the first stroke corresponds to a firstcharacter based on the spatial component of the first stroke (e.g., withthe determining unit 1206), determine a second probability that thefirst stroke corresponds to the first character based on the temporalcomponent of the first stroke (e.g., with the determining unit 1206),and determine an aggregate probability that the first stroke correspondsto the first character based on the first probability and the secondprobability (e.g., with the determining unit 1206).

In some embodiments, the determinations of the first, second andaggregate probabilities are performed (e.g., with the determining unit1206) while the first stroke is still being detected. In someembodiments, the determinations of the first, second and aggregateprobabilities are repeated periodically (e.g., with the determining unit1206) while the first stroke is still being detected.

In some embodiments, the processing unit 1204 is further configured to,while the first stroke is still being detected: determine, at a firsttime, a first aggregate probability that the first stroke corresponds tothe first character (e.g., with the determining unit 1206), provide afirst character suggestion for display on a display device based on thefirst aggregate probability (e.g., with the display enabling unit 1208),determine, at a second time after the first time, a second aggregateprobability that the first stroke corresponds to the first character(e.g., with the determining unit 1206), and provide a second charactersuggestion, different from the first character suggestion, for displayon the display device based on the second aggregate probability (e.g.,with the display enabling unit 1208).

In some embodiments, the first input comprises the first stroke detectedduring a first time period and a second stroke detected during a secondtime period, the second stroke having a spatial component and a temporalcomponent, and the processing unit 1204 is further configured to:determine a third probability that the first stroke corresponds to thefirst character and the second stroke corresponds to a second characterbased on the temporal and spatial components of the first and secondstrokes (e.g., with the determining unit 1206), determine a fourthprobability that a combination of the first stroke and the second strokecorresponds to a third character based on the temporal and spatialcomponents of the combination of the first and second strokes (e.g.,with the determining unit 1206), in accordance with a determination thatthe third probability is higher than the fourth probability, select thefirst character and the second character as inputs (e.g., with theselecting unit 1210), and in accordance with a determination that thefourth probability is higher than the third probability, select thethird character as an input (e.g., with the selecting unit 1210).

In some embodiments, determining the third probability comprisesdetermining the third probability based on a language model indicating alikelihood that the first character will be followed by the secondcharacter in a particular language.

In some embodiments, the processing unit 1204 is further configured todetermine a plurality of aggregate probabilities for a plurality ofcharacters, a first aggregate probability comprising an aggregateprobability that the first stroke corresponds to a first character ofthe plurality of characters and a second aggregate probabilitycomprising an aggregate probability that the first stroke corresponds toa second character of the plurality of characters (e.g., with thedetermining unit 1206), and select, from the plurality of characters, acharacter having the highest aggregate probability as an input (e.g.,with the selecting unit 1210).

In some embodiments, the processing unit 1204 is further configured todetect an end of the first stroke (e.g., with the detecting unit 121),and after detecting the end of the first stroke, detect at least aportion of a second stroke (e.g., with the detecting unit 1212), and inresponse to detecting the portion of the second stroke, determinewhether the first stroke and the second stroke correspond to a singlecharacter based on temporal information about the first stroke and thesecond stroke (e.g., with the determining unit 1206). In someembodiments, the second stroke spatially overlaps at least a portion ofthe first stroke, and the first stroke and the second stroke aredetermined as belonging to different characters based at least in parton the temporal information. In some embodiments, the first stroke isspatially segregated from the second stroke, and the first stroke andthe second stroke are determined as belonging to the same characterbased at least in part on the temporal information.

In accordance with some embodiments, FIG. 13 shows a functional blockdiagram of an electronic device 1300 configured in accordance with theprinciples of the various described embodiments. The functional blocksof the device are, optionally, implemented by hardware, software, or acombination of hardware and software to carry out the principles of thevarious described embodiments. It is understood by persons of skill inthe art that the functional blocks described in FIG. 13 are, optionally,combined or separated into sub-blocks to implement the principles of thevarious described embodiments. Therefore, the description hereinoptionally supports any possible combination or separation or furtherdefinition of the functional blocks described herein.

As shown in FIG. 13, an electronic device 1300 optionally includes areceiving unit 1302 configured to receive inputs, and a processing unit1304 coupled to the receiving unit 1302. In some embodiments, theprocessing unit 1304 includes a display enabling unit 1306, adetermining unit 1308, a detecting unit 1310, an entering unit 1312, anda moving unit 1314.

In some embodiments, the receiving unit 1302 is configured to, while auser interface is displayed on a display device, receive an indicationof a first input that includes movement of a contact detected on atouch-sensitive surface of a device. In some embodiments, the processingunit 1304 is configured to generate the user interface for display onthe display device (e.g., with the display enabling unit 1306), whereinthe user interface includes a gesture display region, and afterreceiving the indication of the first input: display a representation ofthe movement of the contact in the gesture display region (e.g., withthe display enabling unit 1306), determine a first candidate characterthat corresponds to the movement of the contact (e.g., with thedetermining unit 1308), and concurrently display the first candidatecharacter with the representation of the movement of the contact in thegesture display region (e.g., with the display enabling unit 1306).

In some embodiments, the user interface includes a text entry field, andthe gesture display region is displayed in-line with the text entryfield. In some embodiments, displaying the first candidate character inthe gesture display region comprises displaying the first candidatecharacter in the gesture display region until a second candidatecharacter is determined to be a most likely candidate character, and theprocessing unit is further configured to: detect additional movement ofthe contact of the first input (e.g., with the detecting unit 1310),determine that the second candidate character is the most likelycandidate character (e.g., with the determining unit 1308), ceasedisplay of the first candidate character in the gesture display region(e.g., with the display enabling unit 1306), and concurrently displaythe second candidate character with the representation of the movementof the contact in the gesture display region (e.g., with the displayenabling unit 1306).

In some embodiments, the gesture display region is displayed at a firstlocation in the user interface at which the first candidate character isto be entered, and the processing unit is further configured to: inresponse to a determination that the first candidate character is afinal character (e.g., with the determining unit 1308), enter the firstcandidate character in the first location in the user interface (e.g.,with the entering unit 1312), and after entering the first candidatecharacter in the first location, move the gesture display region to asecond location in the user interface at which a second candidatecharacter is to be entered (e.g., with the moving unit 1314).

In some embodiments, entering the first candidate in the first locationis in response to detecting liftoff of the contact of the first input.In some embodiments, the representation of the movement of the contactcomprises: a contact position indicator representing a current locationof the contact on the touch-sensitive surface of the device, and a trailrepresenting one or more past locations of the contact on thetouch-sensitive surface of the device, wherein a visual emphasis of arespective point in the trail varies depending on the amount of timethat has elapsed since the contact position indicator was at therespective point in the trail.

In some embodiments, determining the first candidate character comprisesdetermining the first candidate character from a plurality of candidatecharacters that correspond to the movement of the contact, anddisplaying the first candidate character in the gesture display regioncomprises displaying the first candidate character overlaid on therepresentation of the movement of the contact in the gesture displayregion.

In some embodiments, in the user interface, the first candidatecharacter is overlaid on the representation of the movement of thecontact such that a shape and a position of the first candidatecharacter is similar to a shape and a position of the representation ofthe movement of the contact.

In some embodiments, the receiving unit 1302 is further configured toreceive an indication of further movement of the contact, and theprocessing unit 1304 is further configured to: in accordance with adetermination that movement of the contact, including the furthermovement of the contact, corresponds to a second candidate character(e.g., with the determining unit 1308), update the user interface to:cease to display the first candidate character (e.g., with the displayenabling unit 1306), and display the second candidate character overlaidon the representation of the movement of the contact (e.g., with thedisplay enabling unit 1306).

In some embodiments, the representation of the movement of the contactis displayed in a region of a first text entry field that is visuallydistinguished from other regions of the first text entry field. In someembodiments, the visually distinguished region of the first text entryfield is a current character input region of the first text entry fieldinto which a current character is to be inputted, the receiving unit1302 is further configured to receive a request to switch to inputtingcharacters in a second character input region of the first text entryfield, and the processing unit 1304 is further configured to, inresponse to receiving the request, update the user interface to shiftthe visually distinguished region to the second character input regionof the first text entry field (e.g., with the moving unit 1314).

In some embodiments, the processing unit 1304 is further configured to,before updating the user interface to shift the visually distinguishedregion to the second character input region: determine a final charactercorresponding to the movement of the contact (e.g., with the determiningunit 1308), and input the final character into the current characterregion of the text entry field (e.g., with the entering unit 1312).

In accordance with some embodiments, FIG. 14 shows a functional blockdiagram of an electronic device 1400 configured in accordance with theprinciples of the various described embodiments. The functional blocksof the device are, optionally, implemented by hardware, software, or acombination of hardware and software to carry out the principles of thevarious described embodiments. It is understood by persons of skill inthe art that the functional blocks described in FIG. 14 are, optionally,combined or separated into sub-blocks to implement the principles of thevarious described embodiments. Therefore, the description hereinoptionally supports any possible combination or separation or furtherdefinition of the functional blocks described herein.

As shown in FIG. 14, an electronic device 1400 optionally includes areceiving unit 1402 configured to receive inputs, and a processing unit1404 coupled to the receiving unit 1402. In some embodiments, theprocessing unit 1404 includes a display enabling unit 1406, anidentifying unit 1408, a deleting unit 1410, an inputting unit 1412, anda determining unit 1414.

In some embodiments, the receiving unit 1402 is configured to: while auser interface is displayed on a display device, receive an indicationof a first input that includes movement of a contact detected on atouch-sensitive surface of a device, and receive a request to delete afirst candidate character. In some embodiments, the processing unit 1404is configured to generate the user interface for display on the displaydevice, wherein the user interface includes a candidate character region(e.g., with the display enabling unit 1406), in response to detectingthe movement of the contact, identify the first candidate character thatcorresponds to the movement (e.g., with the identifying unit 1408), andupdate the user interface to include the first candidate character inthe candidate character region (e.g., with the display enabling unit1406), and in response to receiving the request to delete the firstcandidate character, update the user interface by: deleting the firstcandidate character in the candidate character region (e.g., with thedeleting unit 1410), and displaying a first plurality of other candidatecharacters that correspond to the movement of the contact in place ofthe first candidate character (e.g., with the display enabling unit1406).

In some embodiments, a first region of the touch-sensitive surface ofthe device is associated with a first candidate character of the firstplurality of other candidate characters, a second region of thetouch-sensitive surface of the device, different than the first region,is associated with a second candidate character of the first pluralityof other candidate characters, the receiving unit 1402 is furtherconfigured to receive an indication of a second input detected on thetouch-sensitive surface of the device, and the processing unit 1404 isfurther configured to, in response to receiving the indication of thesecond input: in accordance with a determination that the second inputwas detected on the first region of the touch-sensitive surface of thedevice (e.g., with the determining unit 1414), input the first candidatecharacter into the candidate character region (e.g., with the inputtingunit 1412), and in accordance with a determination that the second inputwas detected on the second region of the touch-sensitive surface of thedevice (e.g., with the determining unit 1414), input the secondcandidate character into the candidate character region (e.g., with theinputting unit 1412).

In some embodiments, the request to delete the first candidate charactercomprises a first swipe detected on the touch-sensitive surface of thedevice, the receiving unit 1402 is further configured to receive anindication of a second swipe detected on the touch-sensitive surface ofthe device, and the processing unit 1404 is further configured to, inresponse to the second swipe, cease display of the first plurality ofother candidate characters in the user interface (e.g., with the displayenabling unit 1406).

In some embodiments, the receiving unit 1402 is further configured to,after display of the first plurality of other candidate characters inthe user interface is ceased, receive an indication of a third swipedetected on the touch-sensitive surface of the device, the processingunit 1404 is further configured to, in response to the third swipe,update the user interface by: deleting a second candidate character inthe candidate character region (e.g., with the deleting unit 1410), anddisplaying a second plurality of other candidate characters associatedwith the second candidate character in place of the second candidatecharacter (e.g., with the display enabling unit 1406).

In some embodiments, the request to delete the first candidate charactercomprises a first swipe detected on the touch-sensitive surface of thedevice, the receiving unit 1402 is further configured to receive anindication of a second input that corresponds to selection of arespective one of the first plurality of other candidate characters, andthe processing unit 1404 is further configured to, in response to thesecond input, update the user interface to include the respective one ofthe first plurality of other candidate characters in the candidatecharacter region (e.g., with the display enabling unit 1406). In someembodiments, the receiving unit 1402 is further configured to, after theuser interface is updated to include the respective one of the firstplurality of other candidate characters in the candidate characterregion, receive an indication of a second swipe detected on thetouch-sensitive surface of the device, the swipe having a directionopposite the first swipe, and the processing unit 1404 is furtherconfigured to, in response to the second swipe, input a space next tothe respective one of the first plurality of other candidate charactersin the candidate character region (e.g., with the inputting unit 1412).

In some embodiments, the receiving unit 1402 is further configured to,while the respective one of the first plurality of other candidatecharacters is displayed in the candidate character region, receive anindication of a second swipe detected on the touch-sensitive surface ofthe device, and the processing unit 1404 is further configured to, inaccordance with a determination that the second swipe comprises a swipehaving a same direction as the first swipe (e.g., with the determiningunit 1414), update the user interface by deleting the respective one ofthe first plurality of other candidate characters in the candidatecharacter region (e.g., with the display enabling unit 1406), and inaccordance with a determination that the second swipe comprises a swipeand hold, the swipe having a same direction as the first swipe (e.g.,with the determining unit 1414), update the user interface by deletingthe respective one of the first plurality of other candidate charactersin the candidate character region and other candidate characters in thecandidate character region until a release of the hold is detected(e.g., with the display enabling unit 1406).

In some embodiments, the candidate character region in the userinterface comprises a text entry field. In some embodiments, displayingthe first plurality of other candidate characters comprises: inaccordance with a determination that a type of the text entry fieldcomprises a first type (e.g., with the determining unit 1414),displaying a first set of candidate characters as the first plurality ofother candidate characters (e.g., with the display enabling unit 1406),and in accordance with a determination that the type of the text entryfield comprises a second type, different from the first type (e.g., withthe determining unit 1414), displaying a second set of candidatecharacters, different from the first set of candidate characters, as thefirst plurality of other candidate characters (e.g., with the displayenabling unit 1406).

The operations described above with reference to FIGS. 7A-7D, 9A-9D, and11A-11D are, optionally, implemented by components depicted in FIGS.1A-1B, FIG. 12, FIG. 13, or FIG. 14. For example, determining operations710 and 920, and identifying operation 1110 are, optionally implementedby event sorter 170, event recognizer 180, and event handler 190. Eventmonitor 171 in event sorter 170 detects a contact on touch-sensitivedisplay 112, and event dispatcher module 174 delivers the eventinformation to application 136-1. A respective event recognizer 180 ofapplication 136-1 compares the event information to respective eventdefinitions 186, and determines whether a first contact at a firstlocation on the touch-sensitive surface corresponds to a predefinedevent or sub-event, such as selection of an object on a user interface.When a respective predefined event or sub-event is detected, eventrecognizer 180 activates an event handler 190 associated with thedetection of the event or sub-event. Event handler 190 optionallyutilizes or calls data updater 176 or object updater 177 to update theapplication internal state 192. In some embodiments, event handler 190accesses a respective GUI updater 178 to update what is displayed by theapplication. Similarly, it would be clear to a person having ordinaryskill in the art how other processes can be implemented based on thecomponents depicted in FIGS. 1A-1B, FIG. 12, FIG. 13, or FIG. 14.

The foregoing description, for purpose of explanation, has beendescribed with reference to specific embodiments. However, theillustrative discussions above are not intended to be exhaustive or tolimit the invention to the precise forms disclosed. Many modificationsand variations are possible in view of the above teachings. Theembodiments were chosen and described in order to best explain theprinciples of the invention and its practical applications, to therebyenable others skilled in the art to best use the invention and variousdescribed embodiments with various modifications as are suited to theparticular use contemplated.

1. An electronic device, comprising: one or more processors; memory; andone or more programs, wherein the one or more programs are stored in thememory and configured to be executed by the one or more processors, theone or more programs including instructions for: generating a userinterface for display on a display device, wherein the user interfaceincludes a gesture display region and a text entry region; while theuser interface is displayed on the display device, receiving anindication of a first input that includes movement of a contact detectedon a touch-sensitive surface of a device, wherein a representation ofthe movement of the contact is displayed in the gesture display regionwhile the movement of the contact is being detected; and after receivinga completion of the movement of the contact in the first input,concurrently displaying: the representation of the movement of thecontact in the gesture display region; and a first candidate characterthat corresponds to the completed movement of the contact within an areaof the text entry region.
 2. The electronic device of claim 1, whereinthe one or more programs further include instructions for: whileconcurrently displaying the representation of the movement and the firstcandidate character, receiving a request to enter the first candidatecharacter as a final character in the text entry region; and in responseto receiving the request to enter the first candidate character as thefinal character in the text entry region, entering the final characterin the text entry region.
 3. The electronic device of claim 2, whereinthe one or more programs further include instructions for: in responseto receiving the request to enter the first candidate character as thefinal character in the text entry region, ceasing to display therepresentation of the movement.
 4. The electronic device of claim 2,wherein: the final character is entered in a respective location in thetext entry region, and while receiving the indication of the first inputthat includes the movement of the contact and before receiving thecompletion of the movement of the contact in the first input, therespective location in the text entry region does not include acharacter.
 5. The electronic device of claim 2, wherein the one or moreprograms further include instructions for: while displaying finalcharacter in the text entry region: receiving an indication of a secondinput that includes a second movement of a second contact detected onthe touch-sensitive surface of the device, wherein a representation ofthe second movement is displayed in the gesture display region while thesecond movement of the second contact is being detected; and afterreceiving a completion of the second movement of the second contact inthe second input, concurrently displaying: the representation of thesecond movement of the second contact in the gesture display region; anda second candidate character that corresponds to the completed movementof the contact within the area of the text entry region.
 6. Theelectronic device of claim 5, wherein: the final character is a firstfinal candidate character, and the one or more programs further includeinstructions for: while concurrently displaying the representation ofthe second movement of the second contact and the second candidatecharacter, receiving a request to enter the second candidate characteras a second final candidate character in the text entry region; and inresponse to receiving the request to enter the second candidatecharacter as the second final candidate character, entering the secondfinal candidate character adjacent to the first final candidatecharacter in the text entry region.
 7. The electronic device of claim 2,wherein the one or more programs further include instructions for: afterentering the final candidate character in the area of the text entryregion, shifting the gesture display region.
 8. A method comprising:generating a user interface for display on a display device, wherein theuser interface includes a gesture display region and a text entryregion; while the user interface is displayed on the display device,receiving an indication of a first input that includes movement of acontact detected on a touch-sensitive surface of a device, wherein arepresentation of the movement of the contact is displayed in thegesture display region while the movement of the contact is beingdetected; and after receiving a completion of the movement of thecontact in the first input, concurrently displaying: the representationof the movement of the contact in the gesture display region; and afirst candidate character that corresponds to the completed movement ofthe contact within the area of the text entry region.
 9. The method ofclaim 8, further comprising: while concurrently displaying therepresentation of the movement and the first candidate character,receiving a request to enter the first candidate character as a finalcharacter in the text entry region; and in response to receiving therequest to enter the first candidate character as the final character inthe text entry region, entering the final character in the text entryregion.
 10. The method of claim 8, further comprising: in response toreceiving the request to enter the first candidate character as thefinal character in the text entry region, ceasing to display therepresentation of the movement.
 11. The method of claim 8, wherein: thefinal character is entered in a respective location in the text entryregion, and while receiving the indication of the first input thatincludes the movement of the contact and before receiving the completionof the movement of the contact in the first input, the respectivelocation in the text entry region does not include a character.
 12. Themethod of claim 8, further comprising: while displaying final characterin the text entry region: receiving an indication of a second input thatincludes a second movement of a second contact detected on thetouch-sensitive surface of the device, wherein a representation of thesecond movement is displayed in the gesture display region while thesecond movement of the second contact is being detected; and afterreceiving a completion of the second movement of the second contact inthe second input, concurrently displaying: the representation of thesecond movement of the second contact in the gesture display region; anda second candidate character that corresponds to the completed movementof the contact within the area of the text entry region.
 13. The methodof claim 12, wherein: the final character is a first final candidatecharacter, and the one or more programs further include instructionsfor: while concurrently displaying the representation of the secondmovement of the second contact and the second candidate character,receiving a request to enter the second candidate character as a secondfinal candidate character in the text entry region; and in response toreceiving the request to enter the second candidate character as thesecond final candidate character, entering the second final candidatecharacter adjacent to the first final candidate character in the textentry region.
 14. The method of claim 8, further comprising: afterentering the final candidate character in the area of the text entryregion, shifting the gesture display region.
 15. A non-transitorycomputer readable storage medium storing one or more programs, the oneor more programs comprising instructions, which when executed by anelectronic device with one or more processors and memory, the electronicdevice in communication with a display and a touch-sensitive surface,cause the electronic device to perform a method comprising: generating auser interface for display on a display device, wherein the userinterface includes a gesture display region and a text entry region;while the user interface is displayed on the display device, receivingan indication of a first input that includes movement of a contactdetected on a touch-sensitive surface of a device, wherein arepresentation of the movement of the contact is displayed in thegesture display region while the movement of the contact is beingdetected; and after receiving a completion of the movement of thecontact in the first input, concurrently displaying: the representationof the movement of the contact in the gesture display region; and afirst candidate character that corresponds to the completed movement ofthe contact within the area of the text entry region.
 16. Thenon-transitory computer readable storage medium of claim 15, wherein themethod further comprises: while concurrently displaying therepresentation of the movement and the first candidate character,receiving a request to enter the first candidate character as a finalcharacter in the text entry region; and in response to receiving therequest to enter the first candidate character as the final character inthe text entry region, entering the final character in the text entryregion.
 17. The non-transitory computer readable storage medium of claim15, wherein the method further comprises: in response to receiving therequest to enter the first candidate character as the final character inthe text entry region, ceasing to display the representation of themovement.
 18. The non-transitory computer readable storage medium ofclaim 15, wherein: the final character is entered in a respectivelocation in the text entry region, and while receiving the indication ofthe first input that includes the movement of the contact and beforereceiving the completion of the movement of the contact in the firstinput, the respective location in the text entry region does not includea character.
 19. The non-transitory computer readable storage medium ofclaim 15, wherein the method further comprises: while displaying finalcharacter in the text entry region: receiving an indication of a secondinput that includes a second movement of a second contact detected onthe touch-sensitive surface of the device, wherein a representation ofthe second movement is displayed in the gesture display region while thesecond movement of the second contact is being detected; and afterreceiving a completion of the second movement of the second contact inthe second input, concurrently displaying: the representation of thesecond movement of the second contact in the gesture display region; anda second candidate character that corresponds to the completed movementof the contact within the area of the text entry region.
 20. Thenon-transitory computer readable storage medium of claim 19, wherein:the final character is a first final candidate character, and the one ormore programs further include instructions for: while concurrentlydisplaying the representation of the second movement of the secondcontact and the second candidate character, receiving a request to enterthe second candidate character as a second final candidate character inthe text entry region; and in response to receiving the request to enterthe second candidate character as the second final candidate character,entering the second final candidate character adjacent to the firstfinal candidate character in the text entry region.
 21. Thenon-transitory computer readable storage medium of claim 15, wherein themethod further comprises: after entering the final candidate characterin the area of the text entry region, shifting the gesture displayregion.